Marcin Wojnarski - Hypertag: an Indented Language for easy HTML Generation & Web Templating

Conference: EuroPython 2021

Year: 2021

Hypertag: an Indented Language for easy HTML Generation & Web Templating [EuroPython 2021 - Talk - 2021-07-28 - Brian] [Online] By Marcin Wojnarski HYPERTAG (http://hypertag.io) is a full-featured standalone language for HTML templating and document generation. Inspired by indentation-based template languages (Slim, Haml, Shpaml, Pug), it provides clean, readable syntax and multiple original features that enhance code reuse and modularity: native custom tags, DOM manipulation, Python-like granular imports, control blocks, compound expressions, and more. Hypertag can be called directly from Python code, or be plugged as a template backend into Django. Hypertag scripts can utilize all of Django's filter functions out of the box. Hypertag is not limited to HTML alone, but can be adapted to produce different markups. Docs: http://hypertag.io GitHub: https://github.com/mwojnars/hypertag PyPI: https://pypi.org/project/hypertag-lang/ During the talk, Hypertag's syntax will be presented with particular focus on original features not found elsewhere (custom native tags, DOM manipulation, granular imports). The talk will be illustrated with examples, and a comparison with existing template languages will be shown. License: This video is licensed under the CC BY-NC-SA 4.0 license: https://creativecommons.org/licenses/by-nc-sa/4.0/ Please see our speaker release agreement for details: https://ep2021.europython.eu/events/speaker-release-agreement/