Ask HN: State of the Art Multi-platform Code Generation
So I created a Model to Multi-Platform Code Generation toolkit. I wrote it in Perl (since I know that well) and it grew and grew. It now builds Angular-JS, Android and Cloud Endpoints Appengine-J code, giving me a full end-to-end platform from one simple syntax (which looks a bit like haml). Under the hood it is terrible code that grew from a productivity hack to something enormous with its own templating engine, etc... Right now, I am wondering if I should do a major refactor or port it all to an established engine (if this exists). I was researching multi-platform code generation and have not been able to find really good candidates - I am open to candidates on any language, be it Python, Ruby, Lisp or whatever.
So, HN, any good insight on this? Any recommended engine or should I refactor, because this is a typical project where generic generators become increasingly complex and yet too basic because the platforms and styles are just too different?