-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nap is attached to global scope. #2
Comments
I will look into this today. Thanks! |
Thank you! |
Apparently |
And the latest jade totally hides global objects inside template, which is good, but now one has to call |
Found a method utilizing wintersmith's |
env.helpers is exposed in templates. If it wasn't, that livereload plugin wouldn't work. It creates a function that injects a script into the HTML. |
mmm I see, but you have to call it as I am going to open an issue on |
The For instance, if I had a template: jade.compileClient('something, { locals: { nap: true } }); The nap variable would now be set to true at the template level, but this wouldn't be the case with The issue here is that |
Sorry for the late reply, I am having electricity blackouts where I live that I am barely keeping up with my TODOs. I will make it as an option in the config object, if set to true, it will make it to |
As avoiding globals is a generally good practice, it'd make more sense to attach the
nap
object toenv.helpers
such as done in wintersmith-livereload.The text was updated successfully, but these errors were encountered: