6 ms·
It looks like a nice project, but I wonder about the use case. It is limited to HTML output and usage from Rust. Hence, limiting the projects where it can be us
by matroosberg 11y ago
It looks like a nice project, but I wonder about the use case. It is limited to HTML output and usage from Rust. Hence, limiting the projects where it can be used.
HTML syntax has its problems, but when you work with the web, you have to know it anyways. Why would I want to deal with yet another syntax? It also means that as a user of the templating system you have to hope that the system can deal with all the quirks that HTML has (e.g., <br> in HTML 4, <br/> in XHTML and both in HTML 5).
It would be interesting so see an FAQ that explains where the advantages are over other templating solutions like Handlebars.
- smt88 11y agoOr just support HAML syntax...
- reitoei 11y agoRight? Hasn't this wheel been reinvented a gajillion times before.
- bshimmin 11y agoI have to say, my first (and rather uncharitable) thought when I saw this was, "Does the world really need another templating language?" I've been really happy with Haml for years now, and have reached moderate levels of satisfaction with Jade when I can't use Haml. Also, it wasn't clear to me from looking at https://gitlab.com/Polly-lang/Polly/blob/master/GUIDE.md#variables https://gitlab.com/Polly-lang/Polly/blob/master/GUIDE.md#var... how I would actually write, say, an email addressing including an "@" symbol (I'm sure it's possible, just not documented there).
- Aaronepower 11y agoYou're right, I didn't explain it there, I'll update it, but you can just escape it with a \ so "bshimmin\@mail.com" would work.