|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
sdjc Smarty n00b
Joined: 24 Sep 2004 Posts: 3
|
Posted: Fri Mar 11, 2005 11:04 am Post subject: Template structure validation |
|
|
I'm using Smarty to create a Blog engine.
The Blog's templates have a certain structure that must be kept.
e.g:
{%Blogger%}
{%BlogDateHeader%}
{%$BlogDateHeaderDate%}
{%/BlogDateHeader%}
{%/Blogger%}
where: {%Blogger%} block tag must appear on every template.
{%BlogDateHeader%} block tag must be inside {%Blogger%} tags
and {%$BlogDateHeaderDate%} variable tag must be inside the {%BlogDateHeader%} block tag.
I was wondering if anyone knows of an easy way of doing this validation (other than doing it with regular expression etc.).
maybe there's some smarty add-on I don't know of?
thanks. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|