3 ms·
"You couldn't even begin to localize templates like this without rewriting them" How come? If your base HTML templates are say python or ruby templates they co
by tijs 14y ago
"You couldn't even begin to localize templates like this without rewriting them"
How come? If your base HTML templates are say python or ruby templates they could be localized fine. And if the JSON content your parsing with Walrus comes from the same backend and is also localized where's the issue?
It's mustache with some view logic sugar which makes a lot of sense as far as i'm concerned and would allow your HTML templates to be mostly 'logic free'.
- zzzeek 14y agowhat language/locale does the "time ago in words" (http://documentup.com/jeremyruppel/walrus/#walrus-dates/time_ago_in_words http://documentup.com/jeremyruppel/walrus/#walrus-dates/time...) function return a result in ? Looks pretty hardcoded: https://github.com/jeremyruppel/walrus/blob/master/lib/walrus.dates.coffee#L161 https://github.com/jeremyruppel/walrus/blob/master/lib/walru...
- jeremyruppel 14y agoi18n support has been on the roadmap for some time. Just haven't needed it/had the time for it yet. https://github.com/jeremyruppel/walrus/issues/19 https://github.com/jeremyruppel/walrus/issues/19 Contributions always welcome :)