Hacker News new | ask | show | jobs
by russellsprouts 3121 days ago
Haha, my Github has some projects of questionable usefulness, yeah. In that case, I was building a UI for an internal monitoring app at an internship. It had to make requests to lots of internal API and couldn't really ask for custom endpoints or changes. Having a declarative way to transform the responses into UI models was really useful. That also explains the '!json' operator, because inevitably in legacy systems there will be responses that contain stringified JSON that needs to be parsed.
1 comments

For fun, you should make sure to make the identity transform be super complex, like it is for XSLT:

https://en.wikipedia.org/wiki/Identity_transform#Using_XSLT

Um, it's been a while, but I think it fails that test -- the identity template is "$"