liberapay / liberapay.com

Source code of the recurrent donations platform Liberapay
https://liberapay.com/
1.66k stars 213 forks source link

Our templates are verbose and produce output that isn't minified #80

Open Changaco opened 8 years ago

Changaco commented 8 years ago

Even after #52 our templates will still be overly verbose. I want something better, probably more than what Jinja can provide.

rohitpaulk commented 8 years ago

Copying over from #82:

I personally wouldn't prefer the line statement syntax in HTML files - the file structure ends up looking inconsistent. However, I'd support a complete change to something like HAML (ruby) (https://github.com/Rootbuzz/shpaml, maybe?)

Changaco commented 8 years ago

shpaml is interesting, thanks. HAML looks wrong to me, too ruby-like. I think the ideal for me would be Shakespearean Templates.

techtonik commented 8 years ago

The future is after web-components anyway, so rather than focusing on HTML syntax libraries, maybe it is worth to investigate component syntax libraries and static API checkers for binding them with backends (such as with Flux architecture).