Expand the ACE base template lookup pattern
authorbep <bjorn.erik.pedersen@gmail.com>
Sat, 18 Apr 2015 11:58:35 +0000 (13:58 +0200)
committerbep <bjorn.erik.pedersen@gmail.com>
Sat, 18 Apr 2015 11:58:20 +0000 (13:58 +0200)
commitbeff6805340203434d2b8ca738194b781fd37b83
treed0cd7ea334d6e26d87bfaab902b8a1d1e2bde66e
parentbe46a4b9b03df85f786866da7a3a657f978a26bd
Expand the ACE base template lookup pattern

The previous implementation didn't easily support the use case "I want one base template for the single pages, another for the rest".

The new lookup order is:

1. <current-path>/<template-name>-baseof.ace, e.g. list-baseof.ace
2. <current-path>/baseof.ace
3. _default/<template-name>-baseof.ace, e.g. list-baseof.ace.
4. _default/baseof.ace
tpl/template.go