Skip to content

donghui1993/blllld

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

about

this is an text model element template like this

  • common element tag method
<div class="someclass">
	<span>this is text <span> inner node </span></span>
</div>
  • by brt blllldjs
<script type="brt/blllld">
.someclass>span{ this is text }{ inner node }
</script>
  • or by format blllldjs
<script type="format/blllld" space="2">
.someclass
  span{ this is text }
    { inner node }
</script>

it is pretty cool isn`t it?

it will be resolved as an abstract syntax dom tree like this


{
	node:Node.ELEMENT_NODE,
	tag:"div",
	attrs:[{
		name:'class',
		value:'someclass'
	}],
	children:[{
		node:Node.ELEMENT_NODE,
		tag:'span',
		children:[{
			node:Node.TEXT_NODE,
			value:' this is text '
		},{
			node:Node.ELEMENT_NODE,
			tag:'span',
			children:[{
				node:Node.TEXT_NODE,
				value:' inner node '
			}]
		}]
	}]
}

About

an element language model

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published