gws.ext.template.xml

CX templates for XML.

class gws.ext.template.xml.Config(*args, **kwargs)[source]

XML template

class gws.ext.template.xml.XMLRuntime[source]
push_tag(name)[source]
pop_tag()[source]
append_tag(val)[source]
set_attr(name, val)[source]
set_text(s)[source]
register_namespace(text)[source]
as_text(*vals)[source]
filter_datetime(val)[source]
filter_date(val)[source]
class gws.ext.template.xml.XMLCommands[source]
command_t(compiler: gws.tools.vendor.chartreux.compiler.Compiler, arg)[source]
command_tag(compiler: gws.tools.vendor.chartreux.compiler.Compiler, arg)[source]
command_a(compiler: gws.tools.vendor.chartreux.compiler.Compiler, arg)[source]
command_insert(compiler: gws.tools.vendor.chartreux.compiler.Compiler, arg)[source]
command_xmlns(compiler: gws.tools.vendor.chartreux.compiler.Compiler, arg)[source]
interpolate(compiler: gws.tools.vendor.chartreux.compiler.Compiler, s)[source]
attr_re = '(?x)\n ([^\\s=]+) = (\n " (?: .*?) "\n |\n \\S+\n )\n '
parse_atts(compiler: gws.tools.vendor.chartreux.compiler.Compiler, arg)[source]
tag_header(compiler: gws.tools.vendor.chartreux.compiler.Compiler, arg)[source]
end_tag(compiler: gws.tools.vendor.chartreux.compiler.Compiler)[source]
class gws.ext.template.xml.Object[source]
configure()[source]
render(context: dict, mro=None, out_path=None, legends=None, format=None)[source]