Re: Wrapping YUI with WebClay

new topic     » goto parent     » topic index » view thread      » older message » newer message

You can accomplish all of that with existing functionality in WebClay. For instance:

<!-- greeter.etag --> 
{hello} 
<p>Hello, <%= #name %></p> 
 
{goodbye} 
<p>Goodbye, <%= #name %></p> 

Then, to use it in your ETML file:

<%@ include greeter.etag %> 
.. code ... 
<%- greeter:hello name="John" %> 
<%- greeter:goodbye name="Jim" %> 

Or, you can use any function you want:

<%@ include std/sequence.e %> 
... code ... 
<%= join({"Hello", "World"}, ",") %> 
... code ... 

Jeremy

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu