How to introduce a new Slim template
Posted by
torngat on
May 20, 2015; 10:02pm
URL: https://discuss.asciidoctor.org/How-to-introduce-a-new-Slim-template-tp3248.html
Hi everyone,
I thought I should start a new thread for this topic instead of continuing to overload
another. In essence, I'm still not clear on how I can create a new Slim template such that it is recognized by Asciidoctor as something valid (and used when running via the Maven plugin and not CLI).
How could I reproduce the "yell" example from the user manual if I want to use a Slim template approach instead of a Java based extension? How can/should "yell" get registered? Not being sure how to go about it, I created a Slim template called "block_yell.html.slim" and tried variations like this:
----
[yell]
Hey! Ho! Let's go!
[yell]
--
Hey! Ho! Let's go!
--
[name=yell]
Hey! Ho! Let's go!
----
The first two warn of invalid styles. The third simply outputs the string and doesn't use the template. I have also tried other variations, but to no avail. Is this possible?
Thanks!
Sebastien