sffc / card-creatr-studio

Software for creating card game prototypes, made for Mac, Windows, and Linux. Powered by Electron and Vue.
GNU General Public License v3.0
37 stars 4 forks source link

Javascript functions in Card Creatr Studio #10

Open fire-bot opened 4 years ago

fire-bot commented 4 years ago

Sent by toby kurk. Created by fire.


Hello Shane,

Card Creatr Studio is great, thanks.

Can simple javascript functions be defined in Card Creatr Studio?

(Eg, a function to draw a set of circles and rect for to make a rounded-rect)

Thank you,

toby kurk

sffc commented 4 years ago

Yes, definitely. You can use - in your template to prefix JavaScript lines. See:

https://pugjs.org/language/code.html