2 ms·
> to do a simple task of making a template engine Not quite sure what you mean but it does sound like awk was the wrong tool for the job there. For the sort of
by flukus 7y ago
> to do a simple task of making a template engine
Not quite sure what you mean but it does sound like awk was the wrong tool for the job there. For the sort of templating I'm thinking of shell scripts or m4 would have been a better tool. Taking some structured data and piping it to one of those is where awk shines (that and pattern matching).
- thrwaway69 7y agoIt was for making a static site generator. Templating engine was a part of it where I wanted to add functionality for components, generating event handling, adding SEO (meta tags), gluing shell code etc similiar to jsx/vue.