Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

Template structure validation

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Add-ons
View previous topic :: View next topic  
Author Message
sdjc
Smarty n00b


Joined: 24 Sep 2004
Posts: 3

PostPosted: Fri Mar 11, 2005 11:04 am    Post subject: Template structure validation Reply with quote

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
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> Add-ons All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP