Always a good idea.


On Tue, Nov 26, 2013 at 3:06 PM, Jeremy Saenz <notifications@github.com>wrote:

> In render/render.go:
>
> > +		r, err := filepath.Rel(dir, path)
> > +		if err != nil {
> > +			return err
> > +		}
> > +
> > +		ext := filepath.Ext(r)
> > +		if ext == ".tmpl" {
> > +
> > +			buf, err := ioutil.ReadFile(path)
> > +			if err != nil {
> > +				panic(err)
> > +			}
> > +
> > +			name := (r[0 : len(r)-len(ext)])
> > +			tmpl := t.New(name)
> > +			template.Must(tmpl.Parse(string(buf)))
>
> I'm gonna throw a comment in there to avoid confusion
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/codegangsta/martini-contrib/pull/15/files#r7914866>
> .
>