Skip to content
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

Suggestion: Add a debug variable in the object Page #116

Open
xspager opened this issue Apr 11, 2016 · 6 comments
Open

Suggestion: Add a debug variable in the object Page #116

xspager opened this issue Apr 11, 2016 · 6 comments

Comments

@xspager
Copy link
Contributor

xspager commented Apr 11, 2016

Might be useful to have a debug variable on the object Page so the template could decide to include or not a block of script like Google Analytic for example.

@Etiene
Copy link
Member

Etiene commented Apr 20, 2016

@xspager
Copy link
Contributor Author

xspager commented Apr 20, 2016

No, just value true or false I can use on a template to decide to include or not on the html the google analytics script.

@Etiene
Copy link
Member

Etiene commented Apr 20, 2016

I see, you could add it at conf/confmaybe. We already have a debug.inspect field. As it's we only use it for inspect, maybe we should replace this for a simpler thing? Remove inspect and have debug only?

Then at the views you can
local debug = require"conf.conf".debug

@xspager xspager changed the title Suggestion: Add a debug varible in the object Page Suggestion: Add a debug variable in the object Page Apr 20, 2016
@xspager
Copy link
Contributor Author

xspager commented Apr 20, 2016

Would this be accessible on the view?

@Etiene
Copy link
Member

Etiene commented Apr 20, 2016

Yes

2016-04-20 17:53 GMT+02:00 Daniel Lemos [email protected]:

Would this be accessible on the view?


You are receiving this because you commented.
Reply to this email directly or view it on GitHub
#116 (comment)

Etiene Dalcol

Software Engineering student at ENSTA Bretagne and PUC-Rio
Sailor Developer http://sailorproject.org
Lua Ladies Founder http://lualadies.org

@xspager
Copy link
Contributor Author

xspager commented Apr 20, 2016

Oh, sorry, let me try again... Yes, conf.lua is the right place to this value. debug.inspect is very useful this would be something extra.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants