reuters-graphics / bluprint

Dead-easy application scaffolding and CLI.
MIT License
7 stars 2 forks source link

Consider adding some extra default context variables #22

Closed hobbes7878 closed 2 years ago

hobbes7878 commented 2 years ago

Right now, we add bluprintPart as a default context variable: https://github.com/reuters-graphics/bluprint/blob/master/lib/actions/index.js#L52

Thinking a few extra defaults would be handy. Specifically, date variables come up a lot like the current year at runtime. Maybe also a variables that reflects the file system, like the parent directory where bluprint is running.

Can feel out what else is useful, but start by adding: