Html2pats

Hello all,

I’d like to announce a project called HTML2PATS. It’s kind of like a tool
for generating very efficient HTML-producing code for ATS/Postiats.

Repo: https://github.com/ashalkhakov/ATS-Postiats-contrib/tree/html2pats/projects/SMALL/html2pats
Rendering result (and some
documentation): http://ashalkhakov.github.io/html2pats.html

I guess it will get moved into ATS-Postiats-contrib eventually, if HX
permits.

Could you give some explanation about html2pats?

Even after seeing the provided example, I still have difficult figuring
out what html2pats actually does.

Thanks!On Monday, January 11, 2016 at 10:46:22 PM UTC-5, Artyom Shalkhakov wrote:

Hello all,

I’d like to announce a project called HTML2PATS. It’s kind of like a tool
for generating very efficient HTML-producing code for ATS/Postiats.

Repo:
https://github.com/ashalkhakov/ATS-Postiats-contrib/tree/html2pats/projects/SMALL/html2pats
Rendering result (and some documentation):
Hello from HTML2PATS

I guess it will get moved into ATS-Postiats-contrib eventually, if HX
permits.

Could you give some explanation about html2pats?

Even after seeing the provided example, I still have difficult figuring
out what html2pats actually does.

Sorry! I probably have to devote some time to documenting it properly.

The tool translates a web page template (with embedded ATS expressions and
special directives) into an ATS function that outputs a web page with the
expressions computed and interspersed with literal HTML output. Works kind
of like a template engine, except it provides rendering functions
specialized to the templates given during compilation.