Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
Classes | Functions | Variables
scripts.emitter Namespace Reference

Classes

class  Emitter
 

Functions

 Format (template, **parameters)
 

Variables

 _logger = logging.getLogger('emitter')
 

Detailed Description

Templating to help generate structured text.

Function Documentation

◆ Format()

scripts.emitter.Format (   template,
**  parameters 
)
Create a string using the same template syntax as Emitter.Emit.

Definition at line 13 of file emitter.py.

13def Format(template, **parameters):
14 """Create a string using the same template syntax as Emitter.Emit."""
15 e = Emitter()
16 e._Emit(template, parameters)
17 return ''.join(e.Fragments())
18
19

Variable Documentation

◆ _logger

scripts.emitter._logger = logging.getLogger('emitter')
protected

Definition at line 10 of file emitter.py.