News for hackers. Stuff that matters.
Re:Typeset.js – A ty­po­graphic pre-proces­sor for HTML by snurk on Monday August 17, 2015 @07:01PM (#10076672)
Sweet. I've been doing this in Rails helpers, and it's a pain.

Now, how would I add this to my Rails asset pipeline? I'm thinking either:

* Port to Ruby, or

* Use this as a microservice.

??

Re:Typeset.js – A ty­po­graphic pre-proces­sor for HTML by ultimape on Monday August 17, 2015 @07:39PM (#10076795)
It looks like much of code is some simple routines to find and replace elements. Might not take long to recreate it in pure ruby.
Re:Typeset.js – A ty­po­graphic pre-proces­sor for HTML by Doches on Tuesday August 18, 2015 @10:15AM (#10079275)
Nope, didn't take long at all: https://news.ycombinator.com/item?id=10079270
Re:Typeset.js – A ty­po­graphic pre-proces­sor for HTML by girvo on Monday August 17, 2015 @07:24PM (#10076749)
Rely on stdin/stdout, and call it via backticks?
Re:Typeset.js – A ty­po­graphic pre-proces­sor for HTML by lotyrin on Monday August 17, 2015 @07:54PM (#10076848)
I'd think execjs would be in the running.