Earlier quoted context omitted.
Or just support HAML syntax...
I 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#var... how I would actually write, say, an email add…
Show HN: Polly: A templating language for Rust
11–20 of 22 posts
Re: Show HN: Polly: A templating language for Rust
#12It's 'truly logic-less' but with functions and components...
Re: Show HN: Polly: A templating language for Rust
#13Re: Show HN: Polly: A templating language for Rust
#14It's 'truly logic-less' but with functions and components...
A Function's logic, isn't defined in Polly. You have to define it in Rust. This moves all the logic to your Rust server, where your logic should be. It also provides the advantage of being compiled, and optimised with the program, rather than if Polly defined it's own syntax for functions, and logic, and trying to parse that out at run-time.
Re: Show HN: Polly: A templating language for Rust
#15Since I use Jinja syntax for tempaltes already and potentially would like to switch to Rust later, would it make more sense later to add Jinja support to this library or to go with https://github.com/jroweboy/jinja2-c ?
Re: Show HN: Polly: A templating language for Rust
#16Since I use Jinja syntax for tempaltes already and potentially would like to switch to Rust later, would it make more sense later to add Jinja support to this library or to go with https://github.com/jroweboy/jinja2-c ?
Re: Show HN: Polly: A templating language for Rust
#17Really, I think Hiccup is the best solution in this space. Prefer logic-less functions to output html strings? Hiccup has this use case covered. This is all stock Clojure[script], not a templating language: (def foo [:h2 "something cool"]) (hiccup.core/html foo) ;;=> " something cool " Plus there's plenty of ways to quickly build up a bootstrap (, etc) page. (defn bootstrap-page [hiccup-form] (hiccup.page/html5 (hicc…
my $rows= list(list(1,2,3), list(4,5,6));
HTML(BODY(TABLE($rows->map(fun($row) { TR($row->map(*TD)) }))))->string
# => '123456'
ref HTML()
# => 'PXML::PXHTML';
[1] http://functional-perl.org/Re: Show HN: Polly: A templating language for Rust
#18It looks nice, but what about choosing something else as a name? There are already at least two programming languages named Polly and a third one Poly.
Re: Show HN: Polly: A templating language for Rust
#19It looks nice, but what about choosing something else as a name? There are already at least two programming languages named Polly and a third one Poly.
Can you suggest a link to a list of programming language names that people could use to check this for themselves?
Just search for the desired name + "programming language".