Helma 2 Templates - czv./Site/list.view.control
./Site/list.view
./Site/list.control
this.views.list.control() is invoked when the list view is rendered. When it is invoked, "that" is the object which was passed as parameter of the render() method or otherwise an empty/default object. "that" is the object that will be used as the Javascript context when rendering the view. Views would be E4X Javascript XML objects. When Helma would render these views, it would parse them for "lookup", "check" and "loop" attributes and then evaluate them in the context of "that". When parsing the "loop" attributes, Helma would loop through the indicated object (topics) with When parsing the "lookup" attributes, Helma would check if a lookup handler function exists and if so would apply it to the element's content. this.controls.list would be the function that is called in order to handle the request, similar to todays this.list_action. As a reality check for this proposal I so far came up with a specialized prototype of the rendering method. The idea seems to work quite nicely already with current builds of Helma 2. I thought E4X could make implementing this very easy, but I was surprised that it really turned out that way in practice:
Resulting in the following output:
Pages linking to this page: Helma 2 Templates |
navigation
Download
Community
Weblog
Mailing Lists
IRC Channel
Documentation
Introductions
Tools
Reference
Project
Roadmap
Bug Reporting
Source
Helma NG Wiki
Wiki
Tags
Updates
Related Projects
Sites using Helma
Shop
search
tags for this page
all tags
Tagsapps (1) bugs (2) class (1) community (2) compatibility (1) concurrency (1) continuations (2) Documentation (6) dogfood (1) formatting (1) functions (1) gobi (1) helma (7) helma 1.6 (13) helma 1.7 (8) helma 1.x (1) helma 2 (11) helma ng (18) hopobject (1) howto sample code xml-rpc (1) html (1) inheritance (5) introspection (1) java (3) javascript (5) jetty (1) JSDoc (1) lazy (1) marius person (1) metaprogramming (2) modules (3) oop (1) organization (2) ORM (2) parsing (1) plugins (1) project (2) projects (1) prototype (2) prototype scope rhino functions this (0) Rabbit (2) Reference (1) REPL (1) rhino (5) roadmap (3) scope (1) shell (1) shop (0) Skin Rendering (5) Snippets (1) source svn (1) sugar (3) templates (13) testing (4) this (1) Tobi (7) xml (1) Pages linking to this page: Wiki Overview Text Draft, wiki pages linking here
|