Powered by Tachyonic Project Luxon Framework v0.0.0

Luxon Framework for rapid application development. (luxon)

Version

HTML Doc

class luxon.structs.htmldoc.HTMLDoc[source]

HTMLDoc Object.

This class provides minimal validation for speed.

Used for creating html documents.

append(value)[source]

Append raw text to element.

Parameters:value (str) – text such as ‘Goodbye World’
create_element(name)[source]

Create Element / HTMLDoc tag entity.

Parameters:name (str) – Element / Tag name. ie html for <html>

Returns HTMLDoc HTMLDoc object for tag.

get()[source]

Get HTMLDoc output for current element and contents.

Returns HTMLDoc in strings in list.

get_contents()[source]

Get HTMLDoc output for element contents.

Returns HTMLDoc in strings in list.

parse_html(html)[source]

Load HTMLDoc string into document object.

Parameters:html (str) – Valid HTMLDoc for processing.
prepend(value)[source]

Prepend raw text to element.

Parameters:value (str) – text such as ‘Hello World’
set_attribute(attribute, value=None)[source]

Set Attributes on Element / HTMLDoc tag entity.

Parameters:
  • attribute (str) – Attribute name such as ‘class’.
  • value (str) – Attribute value such as ‘uber_menu’.

Validates tags and the values provided.