You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to help these communities: whatwg, w3c, oohtml. To make this possible, I wanted html to be equal to yaml.
Note:Before introducing this file format: oohtml or yaml and because it's interesting. I will compare the html format with the oohtml or yaml format.
1. format
1.1 before: sample.html
<!DOCTYPE html>
<html>
<body>
<h1>My First Heading</h1>
<p>My first paragraph.</p>
</body>
</html>
1.2 after: sample.oohtml or sample.yaml
DOCTYPE: '!DOCTYPE html'html:
body:
h1: 'My First Heading'p: My first paragraph.'
Important note:As we can see, there is no closing of tags or it is not necessary to close tags in the oohtml file format. This is the main difference from the html or oohtml file format. Specific html tags like img can be left without a closing tag. For example,
img.html
<imgsrc="url"/>
img.yaml
img:
src: 'url'
Note:Now that we realize the difference from html format to oohtml format. We can try to clarify or present some common doubts and possible answers about this new file format.
2. FAQ
2.1 What is the difference between yaml format and .oohtmlformat?
The difference from the oohtml format to yaml - is that the oohtml format is yaml applied on the web with object orientation which is the purpose of oohtml.
2.2 What are the advantages of object oriented html with format yaml?
regardless of tag closing and no need to use any javascript framework for manipulation
css files are separate by default and it is based on yaml(there are several programming languages that implement yaml, so it is not difficult to maintain and extend the yaml language with oohtml)
it's more plain text, you can share and understand html structure with ease
reuse of html code is possible in this model
you can create html templates directly in this template, there is no inline of elements
you can create rules to allow certain behavior of html elements
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi everyone.
I would like to help these communities:
whatwg
,w3c
,oohtml
. To make this possible, I wanted html to be equal to yaml.Note: Before introducing this file format:
oohtml
oryaml
and because it's interesting. I will compare thehtml
format with theoohtml
oryaml
format.1. format
1.1 before: sample.html
1.2 after:
sample.oohtml
orsample.yaml
Important note: As we can see, there is no closing of tags or it is not necessary to close tags in the
oohtml
file format. This is the main difference from thehtml
oroohtml
file format. Specifichtml
tags likeimg
can be left without a closing tag. For example,img.html
img.yaml
Note: Now that we realize the difference from
html
format tooohtml
format. We can try to clarify or present some common doubts and possible answers about this new file format.2. FAQ
2.1 What is the difference between
yaml
format and.oohtml
format?The difference from the oohtml format to yaml - is that the oohtml format is yaml applied on the web with object orientation which is the purpose of oohtml.
2.2 What are the advantages of object oriented html with format
yaml
?2.3 What are the problems of this new file format?
Beta Was this translation helpful? Give feedback.
All reactions