from IPython.core.display import display, HTML
from meta import (
    define_website,
    video_map,
    keys,
    url,
)

define_website

"""
Explanation: Building a minimal client-side guest-list app.
Elliott, Eric (2014-06-26). Programming JavaScript Applications: Robust Web Architecture with Node, HTML5, and Modern JS Libraries (Kindle Locations 3305-3306). O'Reilly Media. Kindle Edition.

To demonstrate, take a look at how you might build a minimal client-side guest-list app (just in case you need a bouncer at your birthday party).
If you want to build a Node app, one of the first things you’ll need to do is create a server. One of the easiest ways to do that is to use Express, a minimal application framework for Node.

Developing a client-side guest-list app sans framework.
Find "javscript-guest-list-tutorial" here.
End of explanation
"""


# from a package I wrote: https://github.com/dm-wyncode/pynotebook-youtube-editor
from youtube_editor.youtube_editor import (
    get_embed_string_from,
)

for key in keys:
    display(HTML(get_embed_string_from(video_map.get(key), url)))

html = get_embed_string_from(video_map['entire video'], url)
display(HTML(html))

"""
Explanation: static versus dynamic websites
It seems to be a question of what and at what point HTML, JavaScript, and CSS file creation occurs and not what the website (web application) does.
End of explanation
"""


