Templater class

(Shortest import: from brian2.codegen.templates import Templater)

class brian2.codegen.templates.Templater(package_name, extension, env_globals=None, templates_dir='templates')[source]

Bases: object

Class to load and return all the templates a CodeObject defines.

Methods

derive(package_name[, extension, ...])

Return a new Templater derived from this one, where the new package name and globals overwrite the old.

Details

derive(package_name, extension=None, env_globals=None, templates_dir='templates')[source]

Return a new Templater derived from this one, where the new package name and globals overwrite the old.