On Jan 24, 11:41 am, Gary Taylor <[EMAIL PROTECTED]>
wrote:
> I am relatively new to cakephp and I got tempted to switch to rails
> when I came across 'hobo'.  The template language that this uses looks
> fantastic. You can simply define your own 'html tags' if you like, and
> there are also some built in tags to provide helpers etc..
> Obviously, you could get stuck with this if you defined a tag that
> later on is added to html itself !!
>
> The resulting code looked so tidy and easy to understand.  I believe
> the language is 'dryml'.  I tried to find an equivalent for php but
> have not managed to find anything.
>
> For example - the 'MyMenu' tag has been previously defined to display
> my menu.
>
> <body>
>    <h1>The Title</h1>
>   <div id='menu'>
>     <MyMenu />
>
>   </div>
>
> </body>

You could achieve the same using a helper afterRender function to preg
replace specific html tags, and replace them with an equivalent
renderElement call. but is the complexity and overhead that would add
worth it?

AD
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to