Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.




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

Search: