Show HN: Polly: A templating language for Rust
1–10 of 22 posts
Re: Show HN: Polly: A templating language for Rust
#2There are already at least two programming languages named Polly and a third one Poly.
Re: Show HN: Polly: A templating language for Rust
#3HTML 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.,
in HTML 4,
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.
Re: Show HN: Polly: A templating language for Rust
#4Re: Show HN: Polly: A templating language for Rust
#5It 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…
Re: Show HN: Polly: A templating language for Rust
#6Re: Show HN: Polly: A templating language for Rust
#7It's 'truly logic-less' but with functions and components...
Re: Show HN: Polly: A templating language for Rust
#8Prefer 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
(hiccup.page/include-js "link-to-jquery.js"
"link-to-bootstrap.js")
(hiccup.page/include-css "link-to-bootstrap.css")
hiccup-form))
BTW, there are some interactive examples at http://hiccup.spaceRe: Show HN: Polly: A templating language for Rust
#9It 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…
Or just support HAML syntax...
Re: Show HN: Polly: A templating language for Rust
#10It 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…
Or just support HAML syntax...
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 addressing including an "@" symbol (I'm sure it's possible, just not documented there).