Skip to content

Comment on Typeset.js – A ty­po­graphic pre-proces­sor for HTML

Comments

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.

??

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.

Rely on stdin/stdout, and call it via backticks?

I'd think execjs would be in the running.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.