Comment on Typeset.js – A typographic pre-processor for HTMLComments−snurk11ySweet. 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.??−ultimape11yIt looks like much of code is some simple routines to find and replace elements. Might not take long to recreate it in pure ruby.−Doches11yNope, didn't take long at all: https://news.ycombinator.com/item?id=10079270−girvo11yRely on stdin/stdout, and call it via backticks?−lotyrin11yI'd think execjs would be in the running.
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.
Nope, didn't take long at all: https://news.ycombinator.com/item?id=10079270
Rely on stdin/stdout, and call it via backticks?
I'd think execjs would be in the running.