Frontend
HTML
The idea is to create a semantic vocabulary.
Some tags are highly one to one as the starting point. Ex. if you write <bs:form>, then it writes an HTML <form> tag.
Other tags do not exist in HTML, fx. <bs:carousel>. Then the needed HTML is written to make a Carousel.
CSS
It is 99% Bootstrap 5 based - only with a very few extensions.
However, you do not have to add the Bootstrap CSS classes manually as the basic classes are added by the semantic tags including default margins, paddings, etc..
But you can still add classes like 'p-3' etc. either by the @class attribute or by semilary semantic markup like @padding="3". If those are set as defaults already, the default will be overwritten.
Javascript
The basic idea is to activate Javascript by HTML attribute markup the same way as it is being done in Bootstrap. Fx. @data-bs-toggle and @data-bs-target are used for navigating a tabpanel.
However, you do not have to add those attributes. Instead it is included by the semantic markup.
Input
<?xml version="1.0" encoding="UTF-8"?>
−
<bs:carousel prev="true" next="true" view-height="25" xmlns:bs="http://www.bootstrap-cms.org">
−
<bs:seat>
<bs:h1>Fast</bs:h1>
</bs:seat>
[1 lines]
−
<bs:seat>
<bs:h1>And Easy</bs:h1>
</bs:seat>
[1 lines]
</bs:carousel>
[4 lines]
Fast And Easy
Output
The generated HTML
<?xml version="1.0" encoding="UTF-8"?>
−
<div id="D25idm781" data-bs-ride="carousel" data-bs-touch="true" class="carousel slide vh-25" xmlns:bs="http://www.bootstrap-cms.org">
−
<div class="carousel-inner d-flex h-100 text-center">
−
<div data-bs-interval="5000" class="carousel-item">
−
<div>
<h1>Fast</h1>
</div>
[1 lines]
</div>
[2 lines]
−
<div data-bs-interval="5000" class="carousel-item active">
−
<div>
<h1>And Easy</h1>
</div>
[1 lines]
</div>
[2 lines]
</div>
[6 lines]
−
<button type="button" class="carousel-control-prev" data-bs-target="#D25idm781" data-bs-slide="prev">
<span class="carousel-control-prev-icon" aria-hidden="true"/>
<span class="visually-hidden">Previous</span>
</button>
[2 lines]
−
<button type="button" class="carousel-control-next" data-bs-target="#D25idm781" data-bs-slide="next">
<span class="carousel-control-next-icon" aria-hidden="true"/>
<span class="visually-hidden">Next</span>
</button>
[2 lines]
</div>
[13 lines]
Bootstrap SVG Icons
Input
<?xml version="1.0" encoding="UTF-8"?>
<bs:icon name="building" size="5x" xmlns:bs="http://www.bootstrap-cms.org"/>
Output
<?xml version="1.0" encoding="UTF-8"?>
−
<svg width="16" height="16" fill="currentColor" class="bi bi-building" viewBox="0 0 16 16" xmlns:bs="http://www.bootstrap-cms.org">
<path d="M4 2.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm3 0a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm3.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zM4 5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zM7.5 5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm2.5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zM4.5 8a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5zm2.5.5a.5.5 0 0 1 .5-.5h1a.5.5 0 0 1 .5.5v1a.5.5 0 0 1-.5.5h-1a.5.5 0 0 1-.5-.5zm3.5-.5a.5.5 0 0 0-.5.5v1a.5.5 0 0 0 .5.5h1a.5.5 0 0 0 .5-.5v-1a.5.5 0 0 0-.5-.5z"/>
<path d="M2 1a1 1 0 0 1 1-1h10a1 1 0 0 1 1 1v14a1 1 0 0 1-1 1H3a1 1 0 0 1-1-1zm11 0H3v14h3v-2.5a.5.5 0 0 1 .5-.5h3a.5.5 0 0 1 .5.5V15h3z"/>
</svg>
[2 lines]
SVG Flags
<?xml version="1.0" encoding="UTF-8"?>
<bs:flag code="DK" size="3x" xmlns:bs="http://www.bootstrap-cms.org"/>