Re: Wrapping YUI with WebClay
- Posted by euphoric (admin) Sep 18, 2009
- 1419 views
jeremy said...
How would WebClay be responsible for making it easy to use if not by tags wrapping YUI? For instance:
<%- yui:datatable name="people" sql="SELECT id,name,age FROM people" %>
Allow the user to write a function that outputs whatever they want. The tag would be something like
<%- include custom_scripts.e %> <%- script("mycustomscript") %>
In custom_scripts.e, they could define
function mycustomscript() q = "SELECT id,name,age FROM people" -- etc... end function
or they could load the script from a script file
<%- insert("mycustomscript.js") %>
You might already have a provision to do something like this. That's what they would need to learn to use.