Same template using different variables

21 views
Skip to first unread message

Alex Ivanov

unread,
Jun 14, 2019, 12:33:24 PM6/14/19
to hak...@googlegroups.com
Hello.

I have a lot of similar code on blog pages [1] and templates


$for(some_variable1)
somecode
$endfor

$for(some_variable2)
somecode
$endfor


which I want to minimize to something like


$partial("templates/boiler-code.html", some_variable1)$

$partial("templates/boiler-code.html", some_variable2)$


What would be nice way to do that?

[1] Using the following solution https://github.com/jaspervdj/hakyll/issues/486
Reply all
Reply to author
Forward
0 new messages