##// END OF EJS Templates
templater: add separate() template function...
templater: add separate() template function A pretty common pattern in templates is adding conditional separators like so: {node}{if(bookmarks, " {bookmarks}")}{if(tags, " {tags}")} With this patch, the above can be simplified to: {separate(" ", node, bookmarks, tags)} The function is similar to the already existing join(), but with a few differences: * separate() skips empty arguments * join() expects a single list argument, while separate() expects each item as a separate argument * separate() takes the separator first in order to allow a variable number of arguments after it

File last commit:

r14046:b24e5a70 default
r29085:df838803 default
Show More
footer.tmpl
5 lines | 80 B | application/x-cheetah | CheetahLexer
<script type="text/javascript">process_dates()</script>
{motd}
</body>
</html>