graphdot.codegen package¶
-
class
graphdot.codegen.
Template
(template, escape=True)[source]¶ Bases:
object
A template string with placeholders in the format of ${…} or ?{…}, which can be rendered on-demand. Helpful for code generation.
Parameters: - template (str) – A template string containing placeholders in the format of ${…}.
- escape (bool) – Whether or not backslash () should be escaped in the fill-in contents to the placeholders.