Added more doctstrings to functions and classes
This commit is contained in:
parent
799cfe2125
commit
131e93c679
3 changed files with 104 additions and 1 deletions
|
|
@ -12,6 +12,14 @@ from paramecio2.libraries.urls import make_url, make_media_url, add_get_paramete
|
|||
from paramecio2.libraries.formsutils import csrf_token
|
||||
|
||||
def env_theme(module, cache_enabled=True, cache_impl='', cache_args={}, module_directory="./tmp/modules"):
|
||||
"""Function for create an environment for mako templates
|
||||
|
||||
Function for create an environment for mako templates. Really is a shortcut for TemplateLookup mako function. You can define cache options and module_directory for templates compiled
|
||||
|
||||
Args:
|
||||
module (str): The module where the templates can be founded
|
||||
cache_enabled (boolean): If True
|
||||
"""
|
||||
|
||||
ext=module[len(module)-3:]
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue