26

HTML Parser – Flat HTML to Pug, Jinja2 and Blade Templates

 4 years ago
source link: https://www.tuicool.com/articles/yi2IZrE
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.

Html parser

Interactive tool to convert flat HTML to Pug templates. Read more about this cutting-edge HTML Parser developed by AppSeed.

Html parser Features

The goal for this parser is to cut the manual work for the cases listed below:

  • Build production-ready components and templates for various template engines (PUG, Jinja2, Blade) starting from flat HTML themes
  • Remove hard-coded strings used by template HTML themes

Html parser Work-flow

In ordet to speed up the web development, the HTML parser, provided by AppSeed execute the steps:

  • load the HTML theme / page
  • user can interactively walk on HTML tree
  • user can edit the elements and properties
  • sections (components) can be extracted for various template engines: Jinja2, Blade, Php and PUG
  • save processed html with mutated structure

Html parser Technology

The parser is written in Python3 / Beautiful Soup4 as an interactive console.

Html parser DEMOs

Short list with HTML Parser demos

Automatic HTML Parser - www.3w1.website

Short presentation of the parsing tool used by AppSeed to integrate in minutes an HTML theme.

Automatic HTML Parser - random theme from Colorlib

Short presentation of the HTML Parsing tool used by AppSeed to integrate in minutes an HTML theme.

Html parser tool provided by AppSeed


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK