I have custom Rythm template tag (sayHi.html) which I want to call from parent template (index.html):
In sayHi.html:
Hi there!
In index.html:
<html>
<head></head>
<body>@sayHi()</body>
</html>
I have found out that default behaviour of Rythm template engine (v0.9) is that it tries to find custom template file in current application folder. Thus if I have web project running in Tomcat the path would be /TOMCAT_HOME/bin/sayHi.html
How could I tell Rythm to load custom tags from another path (e.g. /WEB-INF/tags)?
you can ask
Rythm
to load tags from anywhere:See source code here
You can also init
Rythm.engine
(orRythmEngine
instance managed by yourself):Note
Updates
Rythm has deprecated the tag concept, as now you can call any template as a "tag". See http://rythmengine.org/doc/template_guide.md#invoke_template