4 ms·
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
by snurk 11y ago
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.
??
- girvo 11y agoRely on stdin/stdout, and call it via backticks?
- ultimape 11y agoIt looks like much of code is some simple routines to find and replace elements. Might not take long to recreate it in pure ruby.
- Doches 11y agoNope, didn't take long at all: https://news.ycombinator.com/item?id=10079270 https://news.ycombinator.com/item?id=10079270
- lotyrin 11y agoI'd think execjs would be in the running.