3 ms·
I was commenting hoping to get others to explain their templating system, honored to see your reply :) This is what we use: https://github.com/teambox/trimmer
by michokest 15y ago
I was commenting hoping to get others to explain their templating system, honored to see your reply :)
This is what we use: https://github.com/teambox/trimmer https://github.com/teambox/trimmer
In a nutshell, it takes everything under app/templates and compiles it from Rails (so it has access to I18n and ruby) and serves jades, which we later compile and minify.
Trimmer serves the Template and I18n objects, as you can see on this compiled file:
https://d238xsvyykqg39.cloudfront.net/assets/trimmer-en-58fced1047f854838c20e20d4d639677.js https://d238xsvyykqg39.cloudfront.net/assets/trimmer-en-58fc...
I like that your solution actually packs it together with the rest of the code, avoiding one extra request for templates. Maybe we'll add that to our system too.