I've fixed a longstanding bug in [Nimja](https://github.com/enthus1ast/nimja), 
that messed up the paths of imported modules, when code that uses nimja 
template is imported into other Nim Modules. That basically prevented the use 
of [Nimja](https://github.com/enthus1ast/nimja) "components".

This bug is fixed now.

Just make sure that you change you compile code from:
    
    
    proc render*(): string =
      compileTemplateFile(getScriptDir() / "foo.nimja")
    
    
    Run

to
    
    
    proc render*(): string =
      compileTemplateFile("foo.nimja", baseDir = getScriptDir())
    
    
    Run

Finally its possible to create reusable 
[Nimja](https://github.com/enthus1ast/nimja) components! :)

Reply via email to