cliffordp / cliff-wp-plugin-boilerplate

Cliff's WordPress plugin boilerplate

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Create a 'renamer' / text replacement generator

cliffordp opened this issue · comments

Like this one: https://github.com/BracketSpace/Notification-Extension-Boilerplate/blob/master/rename.sh

The idea is that there would be a 'texts' JSON/YAML/etc file (ideally a format that allows comments). You set it and, when you run the 'texts' command, it does its replacements.

Ideally, it could run the replacement command over and over, not just the initial time, in case there was a typo or such... might require keeping start/end boundaries (like curly braces) to find them again and again to be replaced... but then that would require the build command to remove such boundaries/placeholders... Maybe the placeholders stay permanently there but then the build command does the string replacements. I think I like that idea the best 🤔

Related to #64

http://velocity.apache.org/engine/devel/user-guide.html is used by PhpStorm's "File and Code Templates"