Debugging GTPL pages

8 views
Skip to first unread message

Scott

unread,
Nov 18, 2011, 7:38:47 PM11/18/11
to Gaelyk
Is there any way to get an accurate line number on gtpl page
exceptions?


e.g.

<html>
<body>
<% include '/WEB-INF/gtpl/includes/header.gtpl' %>
<div>
${nullentity.name} <- Exception on line 5
</div>
<% include '/WEB-INF/gtpl/includes/footer.gtpl' %>
</body>
</html>

Guillaume Laforge

unread,
Nov 19, 2011, 3:39:24 AM11/19/11
to gae...@googlegroups.com
Unfortunately not.
That's one of the drawbacks of the template engine.
And that's why I've been thinking of creating a new template engine that would take care of that, among other things...

Something that is possible but painful is to use the template engine manually, and have it generate the source (in a file or on the output, or wherever you want), and look at what it gives, but it's by no means automatic, transparent and painless :-(

Guillaume


--
You've received this message because you've subscribed to the Gaelyk Google Group.
To send an email to the group, please write to: gae...@googlegroups.com
To unsuscribe from this group: gaelyk+un...@googlegroups.com
To show more options: http://groups.google.fr/group/gaelyk?hl=en



--
Guillaume Laforge
Groovy Project Manager
SpringSource, a division of VMware


Reply all
Reply to author
Forward
0 new messages