Home | Trees | Indices | Help |
|
---|
|
object --+ | grend.CustomTemplateMixin --+ | object --+ | | | nevow.rend.DataFactory --+ | | | object --+ | | | | | nevow.rend.RenderFactory --+ | | | object --+ | | | | | nevow.rend.MacroFactory --+ | | | object --+ | | | | | nevow.rend.ConfigurableMixin --+ | | | nevow.rend.Fragment --+ | | | nevow.rend.ConfigurableFactory --+ | | | nevow.rend.FreeformChildMixin --+ | | | | | nevow.rend.ChildLookupMixin --+ | | | nevow.rend.Page --+ | | | object --+ | | | | | common.CommonRenderers --+ | | | | | grend.GavoRenderMixin --+ | | | grend.GavoPage --+ | | | grend.ResourceBasedPage --+ | | | grend.ServiceBasedPage --+ | FixedPageRenderer
A renderer that renders a single template.
Use something like <template key="fixed">res/ft.html</template> in the enclosing service to tell the fixed renderer where to get this template from.
In the template, you can fetch parameters from the URL using something like <n:invisible n:data="parameter FOO" n:render="string"/>; you can also define new render and data functions on the service using customRF and customDF.
This is, in particular, used for the data center's root page.
The fixed renderer is intended for non- or slowly changing content. It is annotated as cachable, which means that DaCHS will in general only render it once and then cache it. If the render functions change independently of the RD, use the volatile renderer.
Built-in services for such browser apps should go through the //run RD.
Instance Methods | |||
|
|||
|
|||
|
|||
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
Class Methods | |||
|
|||
|
|||
Inherited from |
Class Variables | |
name =
hash(x) |
|
Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from Inherited from |
Properties | |
Inherited from Inherited from |
Method Details |
x.__init__(...) initializes x; see help(type(x)) for signature
|
lets you insert an URL parameter into the template. Non-existing parameters are returned as an empty string. |
should return true if the content rendered will only change when the associated RD changes. request is a nevow request object. web.root.ArchiveService already makes sure that you only see GET request without arguments and without a user, so you do not need to check this.
|
|
Home | Trees | Indices | Help |
|
---|
Generated by Epydoc 3.0.1 on Thu May 2 07:29:09 2019 | http://epydoc.sourceforge.net |