ActiveState Community

Creating a new api for PRADO

Posted by kalvinet on 2009-08-08 18:47
OS: All / Any

Hi.

I want to create a new api catalog for PRADO templates.
Prado templates uses components tags.
Components tags are like html tags, eg:

< com:TButton Text="Register" OnClick="registerUser" / >

And some component property tags are declare like this:
< prop:PropertyName >
PropertyValue
< / prop:PropertyName >

I have read the udl documentation and the cix schema but
i dont have found an cix file example that uses Html language.

Any idea?

P.D. Sorry for my english.

toddw | Thu, 2009-08-20 13:41

The HTML/XML completions work a little differently than the other languages (JavaScript, Python, etc...). They don't require API catalogs, but rather depend upon XML schemas.

I don't have a good example of a custom xml completions handler, but I can give you some pointers to what you'd need to do.

A good example of handling code completions in a custom UDL language can be seen in the maya extension:
http://svn.openkomodo.com/openkomodo/browse/addons/maya/

For XML, things work somewhat differently, so you may need to study the XML completions handler:
http://svn.openkomodo.com/openkomodo/view/openkomodo/trunk/src/codeintel...

and then you'd probably create a PradoLangIntel that inherits from the XMLLangIntel and override the "async_eval_at_trg" handling (or the methods called from there).

Cheers,
Todd