chiunhau / p5-manager

A p5js template builder & sketches manager. Built for p5js enthusiasts.
348 stars 53 forks source link

Custom Templates #24

Open kravenoff42 opened 7 years ago

kravenoff42 commented 7 years ago

Hey this is a great tool, thanks for making it!

I was taking a look at the coding for the generator and I thought it might be cool if you could create custom template files, ( ie 'my_custom.html', my_sketch.js', etc.) put in the templates directory with some command like 'p5 template [filename.js]', and then a way to set it as the default like 'p5 template set [filename.js]'

I'm only just learning node.js so I'm not really sure how to implement this as it is.

But a someone who likes to tweak his environment to save time I would love a feature like this.

if it seems like a feature too far I understand, especially since I could just edit the template files manually to have the same effect.

Thanks!

chiunhau commented 6 years ago

OK!! I think it's pretty cool to have this feature. I'll work on it asap 👍