Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.
Template structure validation

 
Post new topic   Reply to topic    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:   
Post new topic   Reply to topic    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