Yeah, fair call. There doesn't seem to be a good place to return that error
from compile.


On Tue, Nov 26, 2013 at 3:01 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)))
>
> If I return an error here. template parsing will stop. But the server will
> continue to run with unparsed templates. Is this good behavior or would it
> be better to just bomb out in this case?
>
> —
> Reply to this email directly or view it on GitHub<https://github.com/codegangsta/martini-contrib/pull/15/files#r7914818>
> .
>