Feature Requests item #718683, was opened at 2003-04-10 09:44
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=403614&aid=718683&group_id=31885
Category: None
Group: None
Status: Open
Priority: 5
Submitted By: Richard Archer (richardarcher)
Assigned to: Nobody/Anonymous (nobody)
Summary: Strip comments from templates
Initial Comment:
This idea from a post to the -users list by Sven:
Add a method to Template to strip comments from a
template file.
This would be useful to:
1. remove comments which are present only to make the
template easier to maintain. These are for the use of
the site builders and should never be sent to the user.
2. remove untouched BEGIN/END block comments. I often
have either/or blocks, one of which gets deleted and
the other one stays there, comments and all. The user
has no need to see those comments.
Default behaviour could be for finish to strip comments
from the template, just as it currently processes
remaining {} tags.
Original post from Sven:
Hello
Give it an easy way to delete comments in a template
file so that the output not have the comments?
I will not use the HTML-method (<!-- ... -->) for
commenting my template files.
My idea is a comment beginn with '{*' and end with '*}'
or so.
The first idea was to make an owe function in
template.inc to filter that
comments. But i hope it give an easy way as an own
function.
PS: I working with a cvs version of phplib.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=403614&aid=718683&group_id=31885
|