diff --git a/docs/guide.rst b/docs/guide.rst index 1e8f99f..cdc553b 100644 --- a/docs/guide.rst +++ b/docs/guide.rst @@ -544,3 +544,32 @@ Korona can build
tag. assert dt_tag1 == '
abc
' assert dt_tag1 == dt_tag2 + +------- + +Korona supports some of the embed tag attributes like: + +- ``height`` +- ``src`` +- ``type`` +- ``width`` + +Korona can build tag. + +.. code-block:: python + + from korona.html.construct import Embed + + attributes = {'src': 'helloworld.swf', 'height': '200', 'width': '100'} + + # You can pass in the attributes in the form of a dictionary. + embed1 = Embed(**attributes) + # You can also pass in the attributes as args. + embed2 = Embed(src='helloworld.swf', height='200', width='100') + + embed_tag1 = embed1.construct() + embed_tag2 = embed2.construct() + + assert embed_tag1 == '' + assert embed_tag1 == embed_tag2 +