genericallyloud / ludomatic5000

This is a simple tool which can help rapidly prototype cards/tiles/chits for board/card games. It uses csv files to import data, and jade templates to generate html from them. Finally, it uses wkhtmltopdf to generate pdfs which can be printed.
MIT License
5 stars 2 forks source link

Add limited token support #15

Open jchaffer opened 8 years ago

jchaffer commented 8 years ago

When including text in a template, support a succinct markup that expands something like [foo] to <span class="icon icon-foo"></span>.

genericallyloud commented 8 years ago

Yeah, almost exactly this has been on my list of things to do since the beginning. I was originally thinking but not sure if that would be confusing with HTML.

jchaffer commented 8 years ago

Maybe make it explicit so it doesn't become confusing? I could see adding a dictionary of replacements into ludo.json, so it's both configurable and 100% clear to users that the substitution will happen.

Regardless, this would be super-helpful, and would be the first feature to elevate this over my previous Photoshop workflow, since there's no way to do inline icons there.