Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
template filename output in html
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Andi Balke  
View profile   Translate to Translated (View Original)
 More options Jul 14 2012, 10:18 am
From: Andi Balke <andi.ba...@googlemail.com>
Date: Sat, 14 Jul 2012 16:18:05 +0200
Local: Sat, Jul 14 2012 10:18 am
Subject: template filename output in html

hi,

i was wondering if it is somehow generally possible to add debug information to templates beeing rendered::

  <!-- begin: some/widget/view.mak -->
  …
  <!-- end: some/widget/view.mak -->

e.g. in the "old times" with svn this was easy by using ``$Id$`` in the top of a template file; in gwt there is  an option that renders the filename of a template to the html.  

does anyone have a good hint for accomplishing this? either by hacking the renderer or something else. in the best information about templates beeing rendered would be visible only in development mode.

cheers, andi


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jonathan Vanasco  
View profile  
 More options Jul 14 2012, 8:46 pm
From: Jonathan Vanasco <jonat...@findmeon.com>
Date: Sat, 14 Jul 2012 17:46:34 -0700 (PDT)
Local: Sat, Jul 14 2012 8:46 pm
Subject: Re: template filename output in html
if you're using Mako, you can use ## , which comments out the line.
that will never render and isn't automatically created on imports.

you could also use a build script - either with Fabfile or Ant ( like
the html5 blueprint build script )... have a source "folder" that is
your production , then run the build script to export it into
something developer friendly ( ie, remove ## from comment lines, wrap
include commands with comments, etc ).  that would be rather easy,
except for template functions, though they could use explicit
commenting


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »