snaptoken / leg

Tools for making step-by-step code walkthroughs
MIT License
130 stars 2 forks source link

Pass config vars from leg.yml directly to templates #11

Closed paigeruten closed 6 years ago

paigeruten commented 6 years ago

E.g. version doesn't have to be stored as an instance variable in Snaptoken::Tutorial. It (and probably other vars like even name and title and anything else the user wants to add to their leg.yml) should just passed as a local variable to the template.