Hi, I've realized that it might be helpful, to include a template
called "debug.html" with the same code found in "generic.html." but
without the {{extend}} statement. I am using in my development and
saves me some time to write several "BEAUTIFY" calls.

When I want to be in "development mode", I just write {{include
'debug.html'}} in my template.

The code would be:

{{=BEAUTIFY(response._vars)}}
<button
onclick="document.location='{{=URL("admin","default","design",args=request.application)}}'">admin</
button>
<button onclick="jQuery('#request').slideToggle()">request</button>
<div class="hidden" id="request"><h2>request</h2>{{=BEAUTIFY(request)}}
</div>
<button onclick="jQuery('#session').slideToggle()">session</button>
<div class="hidden" id="session"><h2>session</h2>{{=BEAUTIFY(session)}}
</div>
<button onclick="jQuery('#response').slideToggle()">response</button>
<div class="hidden" id="response"><h2>response</
h2>{{=BEAUTIFY(response)}}</div>
<button onclick="jQuery('#auth').slideToggle()">auth.user</button>
<div class="hidden" id="auth"><h2>auth.user</
h2>{{=BEAUTIFY(auth.user)}}</div>
<script>jQuery('.hidden').hide();</script>


I also added the variable auth.user to this code.

I hope you find this something useful.

Reply via email to