class
, href
, etc. The later are expanded as HTML attributes.
To the EWiki compiler, tags are simple names that will be transformed into the HTML format. A [div]
will be a <div>
, without paying any further attention at the name div.
Parameters differ from HTML. They are enclosed within parenthesis, separated by commas, using a colon to divide the attribute from its value. In the simple form, [div(font-weight:bold)]
will be as HTML <div style="font-weight:bold">
. At this point, doesn't seem to help much, but let's consider this: [div(font-weight:bold,margin:10px,class=supersized)]
, where the HTML will be <div style="font-weight:bold;margin:10px" class="supersized")>
. First thing you may notice is that the compiler detected class
as a separated attribute. Also, it's not necessary to create a style
, nor include quotes.
As in HTML, EWiki tags are containers. You can add content within the container opening tag, and the closing tag.
EWiki introduces a major difference here, allowing any container to easily write text. By adding the suffix -text
, EWiki containers create paragraphs by using simple line feeds. By default, the root container is a text container.
EWiki | HTML | Description |
---|---|---|
[div] Hello world [/div] |
Hello world
|
Behaves as normal HTML, where line feeds are white spaces. |
[div-text] Hello world [/div-text] |
Hello world |
Creates HTML paragraphs for new lines. |
English | 12/11/23 18:25 | Lluís Turró Cutiller | |
English | 12/31/23 14:38 | Lluís Turró Cutiller | |
English | 01/05/24 12:28 | Lluís Turró Cutiller |