Skip to content

v0.5

Latest

Choose a tag to compare

@Rignchen Rignchen released this 03 Jan 15:20
· 6 commits to master since this release

0.5.0:

  • Add pass balise to keep model balise from last model file
  • Implement templates
<!DOCTYPE html>
<html lang="en">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<link rel="stylesheet" href="/style.css">
	<title>Document</title>
</head>
<body>
	<model/>
</body>
</html>
<def-template-pomme>
	Hello, World!
</def-template-pomme>

+

<model>
	<h1>
		<template-pomme/>
	</h1>
	<template-name args="coucou;pomme"/>
	<def-template-name>
		<div>
			<arg/>
		</div>
		<h1>
			<arg/>
		</h1>
	</def-template-name>
	<template-name args="hello;apple"/>
</model>

->

<!DOCTYPE html>
<html lang="en">
	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width, initial-scale=1.0">
		<link rel="stylesheet" href="/style.css">
		<title>
			Document
		</title>
	</head>
	<body>
		<h1>
			Hello, World!
		</h1>
		<div>
			coucou
		</div>
		<h1>
			pomme
		</h1>
		<div>
			hello
		</div>
		<h1>
			apple
		</h1>
	</body>
</html>