added missing var 'timestamp' for template render#18
added missing var 'timestamp' for template render#18fscz wants to merge 1 commit intoChicagoBoss:masterfrom fscz:master
Conversation
|
Please exclude the changes from boss.config and I will merge this in. |
|
Hi Evan, Opening https://localhost:8001/admin/lang/show on my admin interface, I receive this error:Error: {line,{30,70}}]}My last bug fix concerned a similar error, only in this case, I'm unsure, I have two machines, both running OSX 10.8, both running The error right now points to src/view/lang/show.htmlfunction startTranslation(span) { }where {{ original_lang }} isn't set. I could use something likeOriginalLang = boss_env:get_env(assume_locale, "en"),and add it to the template. But I think the general question is, how to deal with templates, that are Regargds, On Feb 18, 2013, at 3:26 AM, Evan Miller notifications@github.com wrote:
|
|
The error is a new one recently introduced into ErlyDTL; it's possible that one machine is running an older ErlyDTL. In general you should surround possibly-undefined variables in an if-statement like: {% if orig_lang %}{{ orig_lang }}{% endif %} Or use the "default_if_none" filter: {{ orig_lang|default_if_none:"" }} |
No description provided.