monokrome / jaded-brunch

Jade for brunch, supporting both dynamic and static loading jade.
MIT License
23 stars 10 forks source link

Exposed currently compiling filename in locals. #16

Closed michaek closed 8 years ago

michaek commented 9 years ago

This can be helpful in cases where we want to know what template is "current", as in a shared navigation that will style the appropriate items as active for the page that's being rendered. Using the local variable "filename" is following from static-jade-brunch.

monokrome commented 9 years ago

Hi, @michaek. Thanks for the PR. I'm still thinking about this one, but will try to figure out what will need to be done within the next couple days. Thank you!

monokrome commented 8 years ago

@michaek Merging, and going to change it to use _.defaults after the merge. Thanks for the PR, and sorry for the delayed decision! It's been a while... :fearful: