Re: Wrapping YUI with WebClay

new topic     » goto parent     » topic index » view thread      » older message » newer message
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.

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

Search



Quick Links

User menu

Not signed in.

Misc Menu