Re: Wrapping YUI with WebClay
- Posted by jeremy (admin) Sep 18, 2009
- 1866 views
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

