I know that for and if accept the template via tmpl. Does else? Any other statements accept tmpl?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Yes, any tag that accepts block content will allow you to write
{{foo ...}}...{{/foo}}or{{foo ... tmpl=expr/}}. Expression support inexpris very flexible. For example it can be"myTemplateName"or~a.b.getTheTemplate()returning a compiled template, or"someHTMLmarkup".That includes
{{else tmpl=...}}and there is an example in the unit tests here: https://github.com/BorisMoore/jsrender/blob/master/test/unit-tests/tests-jsrender-no-jquery.js#L73.