|
Posted by Jerry Stuckle on 09/23/07 13:44
Kai Schlamp wrote:
> Hello!
>
> I am thinking of a way to define my own tags like <my_tag> or {my_tag}
> or something like that, and later substitute these with real html
> code.
>
> For example, lets say I have a code snippet:
> {content_title}The Title{/content_title}
>
> Before echoing it out, I would do the following substitution:
> {content_title} = <table class="title_table"><th><td>
> {/content_title} = </td></th></table>
>
> This is a very simple example. But in a big site with many of the same
> components, such a scheme would make sense to alter the page layout
> pretty quick.
> Are there some helper classes or functions, or perhaps a whole package
> already for such a task?
> Or should I simply create the content with my tags and then subsitute
> all my tags with the real html code via preg_repalce function before
> printing it out? If yes, are there any better performance options
> instead of using preg_replace?
>
> Kai
>
Make it easy on yourself. Use CSS. That's what it's there for.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|