Skip to content

update attribute_str to just show attribute name if value is ""#1

Open
mike-jacks wants to merge 3 commits into
greganderson:mainfrom
mike-jacks:main
Open

update attribute_str to just show attribute name if value is ""#1
mike-jacks wants to merge 3 commits into
greganderson:mainfrom
mike-jacks:main

Conversation

@mike-jacks
Copy link
Copy Markdown

if a tag does not contain a value, it will omit the =

tag adds flag for single tag so closing tag will be an empty string
doctype tag generates a single doctype html tag
Comment thread tags/tag.py
""" Base class for a generic tag """

def __init__(self, name: str, contents: str = ""):
def __init__(self, name: str, contents: str = "", single_tag = False):
Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added flag to determine if the tag is solo or has a closing tag

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant