Hacker News new | past | comments | ask | show | jobs | submit login
Scalatex: Type-safe, programmable documents (github.com/lihaoyi)
59 points by lihaoyi on Dec 28, 2014 | hide | past | favorite | 11 comments



Is it correct that, despite the name, this has nothing to do with (La)TeX (http://latex-project.org)? Is the @-syntax motivated at all by Lout (http://savannah.nongnu.org/projects/lout)?


This confused me as well. The name is fairly deceptive.


Seems about right. It looks like an HTML template language, not a layout language.


If you like programmable documents, I have two suggestions to look into:

- org-mode :: This emacs mode lets you create documents of just about any format, style, and purpose. Think of it as markdown's older brother that takes HGH and compete to be the best of everything, and almost is. But he farts and burps a lot.[0]

- Scribble :: A racket (plt scheme) documentation tool that uses racket's #lang directives to create a fairly neat documentation tool, but pretty scheme specific.

[0]: http://orgmode.org

[1]: http://docs.racket-lang.org/scribble/


Also, scribble has an alternative @-like syntax as well:

http://docs.racket-lang.org/scribble/reader.html#%28part._al...


In the same vein Xiki may be of interest:

http://xiki.org/


This is pretty cool. Also, thanks for your work on Scala.JS related stuff!


Reminds me a bit of Scribble http://docs.racket-lang.org/scribble/

Scribble isn't type-checked (though maybe it plays with Typed Racket?), but is similarly about creating documents that leverages the underlying programming language.

Excellent stuff, and good luck! :D


Type-safe HTML templating in Haskell:

http://www.yesodweb.com/book/shakespearean-templates


Looks quite similar to twirl (https://github.com/spray/twirl)


cool. also liked your chat on scala.js at the scala meetup!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: