springheel.wraptag module¶
- springheel.wraptag.wrapWithComment(s: str, comment: str) → str¶
Wrap a string in an HTML comment.
- Parameters
- sstr
The string to wrap.
- commentstr
The HTML comment to use.
- Returns
- str
The string wrapped in the comment.
Notes
Mostly just makes it easier to debug problems in templates. It marks up the various sections of the output.
- springheel.wraptag.wrapWithTag(s: str, tag: str) → str¶
Wrap a string in an HTML tag.
- Parameters
- sstr
The string to wrap.
- tagstr
The HTML tag to wrap the string in.
- Returns
- str
The string wrapped in the tag.