soasme/nim-mustache

Explicitly specify partial loaders

soasme opened this issue · 3 comments

Issue
I want to have different types of loaders, and am able to organize the order of these loaders.
Each loader provides a way to resolve templates.

Example

ctx = newContext()
ctx.searchDir("./")
ctx.searchTable(table)

Or in another order

ctx = newContext()
ctx.searchTable(table1)
ctx.searchDir("./")
ctx.searchTable(table2)

Feature implemented, see changelog v0.3.0.

great, thanks, will use it very soon in my own nimib (which also uses your other great library for markdown)! I also appreciate the fact that the default order created by newContext is first searchDirs and then in memory partials!

I added a small note to the code here