Html Parser - Html to Pug, Jinja2, Blade Converter | AppSeed
Interactive tool to convert flat HTML (themes or stand-alone files) to Pug, Jinja2 and Blade templates.
According to Wikipedia, Parsing or syntactic analysis is the process of analyzing a string of symbols, either in natural language or in computer languages, according to the rules of a formal grammar. The meaning of HTML parsing applied here consist into load the HTML, extract and process the relevant information like head title, page assets, main sections and later on, save the processed file.
The goal of this tool is to automate the UI integration into existing apps, written in different technologies and frameworks. Starting from flat HTML, the tool can be used by anyone to extract components, edit attributes and traverse the HTML tree using an interactive console.
The sample, extracted from Stellar HTML5Up theme is a simple navigation bar, extracted from this file
nav#nav
ul
li
a.active.newclass(href='https://appseed.us/html-parser').
Introduction
li
a(href='#first').
First Section
li
a(href='#second').
Second Section
li
a(href='#cta').
Get Started
<nav id="nav">
<ul>
<li>
<a class="active newclass" href="https://appseed.us/html-parser">
<?php echo $var_1?>
</a>
</li>
<li>
<a href="#first">
<?php echo $var_2?>
</a>
</li>
<li>
<a href="#second">
<?php echo $var_3?>
</a>
</li>
<li>
<a href="#cta">
<?php echo $var_4?>
</a>
</li>
</ul>
</nav>
All are open-source, with live DEMO.
The tool is not open-source. For licenses, please contact AppSeed - support [ @ ] appseed.us
HTML parser tool provided by AppSeed