Fixes in documentation
This commit is contained in:
parent
cfb70403c1
commit
dc58175760
13 changed files with 119 additions and 113 deletions
|
|
@ -30,7 +30,7 @@ def env_theme(module, cache_enabled=True, cache_impl='', cache_args={}, module_d
|
|||
|
||||
Returns:
|
||||
|
||||
TemplateLookup: Return TemplateLookup object
|
||||
template (TemplateLookup): Return TemplateLookup object
|
||||
|
||||
"""
|
||||
|
||||
|
|
@ -113,7 +113,7 @@ class PTemplate:
|
|||
module (str): Optional. Where is saved the js file.
|
||||
|
||||
Returns:
|
||||
None: Dummy return necessary because mako expect return something
|
||||
dummy (str): Dummy return necessary because mako expect return something
|
||||
"""
|
||||
if not js in self.js:
|
||||
self.js[js]='<script language="Javascript" src="{}"></script>'.format(make_media_url('js/'+js, module))
|
||||
|
|
@ -140,7 +140,7 @@ class PTemplate:
|
|||
**arguments (mixed): Extra arguments with variables passed to template
|
||||
|
||||
Returns:
|
||||
Return a template rendered using mako class from self.env
|
||||
template (str): Return a template rendered using mako class from self.env
|
||||
"""
|
||||
|
||||
"""
|
||||
|
|
@ -182,11 +182,11 @@ class PTemplate:
|
|||
Experimental method for parse a template, similar to load_template but try cache the template loaded
|
||||
|
||||
Args:
|
||||
js (str): The name of js file. Normally you save the file in media/js folder in module or theme
|
||||
module (str): Optional. Where is saved the js file.
|
||||
template_file (str): The name of template file. The template is searched using configuration defined in self.env
|
||||
**arguments (mixed): Extra arguments with variables passed to template
|
||||
|
||||
Returns:
|
||||
None: Dummy return necessary because mako expect return something
|
||||
dummy (str): Dummy return necessary because mako expect return something
|
||||
"""
|
||||
|
||||
if not str(self.env.directories)+'/'+template_file in PTemplate.templates_loaded:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue