Part of nevow.rend View Source View In Hierarchy
Known subclasses: nevow.athena.LiveFragment, nevow.rend.Page
Implements interfaces: nevow.inevow.IGettable, nevow.inevow.IRenderer
A fragment is a renderer that can be embedded in a stan document and hooks its template (from the docFactory) up to its data_ and render_ methods, i.e. it remembers itself as the IRendererFactory and IContainer.
Fragment primarily serves as the base for Page, Nevow's web resource, but it can be used for more complex rendering. For instance, a fragment might be used to encapsulate the rendering of a complex piece of data where the template is read from disk and contains standard renderers (sequence, mapping etc) and/or custom render methods.Split Table into Classes Show Methods in One Table
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 377 | Method | __init__ | Undocumented |
| 384 | Method | get | Return the data |
| 387 | Method | rend | Turn this instance into stan suitable for displaying it in a web page. |
| 432 | Method | remember | Remember an object for an interface on new PageContexts which are |
| 443 | Method | rememberStuff | Undocumented |
Inherited from DataFactory:
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 120 | Method | child | Return a conceptual child; an attribute, or a key, |
Inherited from RenderFactory:
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 60 | Method | renderer | Return a renderer with the given name. |
Inherited from MacroFactory:
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 90 | Method | macro | Return a macro with the given name. |
Inherited from ConfigurableMixin:
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 193 | Method | getBindingNames | Expose bind_* methods and attributes on this class. |
| 200 | Method | getBinding | Massage bind_* methods and attributes into an |
| 223 | Method | getDefault | Get a default value for a given binding. If the |
| 235 | Method | postForm | Accept a form post to the given bindingName. |
| Line # | Kind | Name | Docs |
|---|---|---|---|
| 377 | Method | __init__ | Undocumented |
| 120 | Method | child | Return a conceptual child; an attribute, or a key, |
| 384 | Method | get | Return the data |
| 200 | Method | getBinding | Massage bind_* methods and attributes into an |
| 193 | Method | getBindingNames | Expose bind_* methods and attributes on this class. |
| 223 | Method | getDefault | Get a default value for a given binding. If the |
| 90 | Method | macro | Return a macro with the given name. |
| 235 | Method | postForm | Accept a form post to the given bindingName. |
| 432 | Method | remember | Remember an object for an interface on new PageContexts which are |
| 443 | Method | rememberStuff | Undocumented |
| 387 | Method | rend | Turn this instance into stan suitable for displaying it in a web page. |
| 60 | Method | renderer | Return a renderer with the given name. |
Remember an object for an interface on new PageContexts which are constructed around this Page. Whenever this Page is involved in object traversal in the future, all objects will be visible to .locate() calls at the level of a PageContext wrapped around this Page and all contexts below it.
This does not affect existing Context instances.