4 ms·
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
by russellsprouts 9y 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.
- fusiongyro 9y agoFor 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 https://en.wikipedia.org/wiki/Identity_transform#Using_XSLT
- russellsprouts 9y agoUm, it's been a while, but I think it fails that test -- the identity template is "$"