<sdomi>
i'll be making a breaking change with the templating engine: thus far the include (`{{#path/to/tpl.htm}}`) were relative to httpsh's directory; i plan to make this configurable, and default to the namespace's dir (`app/`)
<sdomi>
hmm. actually, i think the problem at hand may be a bit more complex
<sdomi>
generally, i wanted to implement theme support in some downstream code, through making a wrapper over `render` which would pick the correct template file to use
<sdomi>
but file includes within templates make this harder
<sdomi>
i guess i could just use what i just wrote with an override of the include path. but having support for interchanging template files in upstream code
<sdomi>
this is one of the things where i might have benefitted from reading how others did it but i kinda wanna figure it out myself XD
<sdomi>
okay, i think i'm gonna introduce an array with search paths. empty by default (and defaulting to `app/`), render() would check each entry for existence of the template specified in the argument (or in the include directive) and use the first one it could find
<sdomi>
this could be used to implement basic inheritance, so if i define `search_paths=("${cfg[namespace]}/templates/cool_theme/" "${cfg[namespace]}/templates/default/")` then it would try to use the cool_theme first, and fallback for all the files it can't find
<sdomi>
which is neat because you can override just one file and leave the rest as it was
* sdomi
wishes you could nest arrays in assoc arrays