chucknorris / warmup

WarmuP - a simple templater / token replacement tool
44 stars 24 forks source link

Adding pre & post scripts #22

Open mbukosky opened 9 years ago

mbukosky commented 9 years ago

Hi,

I was looking for a template creator when I came across your project. I this is a very useful solution that takes care of almost all my needs. The only thing that is somewhat lacking is the ability to run scripts after the tokenization. I wanted to get your input on a possible solution (and future PR) I came up with.

The overall idea is to have an option to run a pre and post script during the warmup. The scripts could be stored in the template directory and loading during execution. If you like the idea, I can clean up my code and prepare it for a PR. I always want to add other little features like deleting the script after it has run or adding the script locations to the config.

Please let me know what you think or have any better ideas.

Thanks so much