Finish variables
This commit is contained in:
parent
89fff8112f
commit
1f98b9c421
7 changed files with 164 additions and 88 deletions
|
@ -1,10 +1,11 @@
|
|||
<hylia>
|
||||
<import file="header.hy"></import>
|
||||
<element name="head">
|
||||
<title>Hello Hylia!</title>
|
||||
</element>
|
||||
<var name="testvar"><h1>Hello!</h1><br><h2>Hello again!</h2></var>
|
||||
<element name="body">
|
||||
<header />
|
||||
<p>This is the main content.</p>
|
||||
<h1>Hello Hylia!</h1>
|
||||
<p>This is an example content.</p>
|
||||
{{testvar}}
|
||||
</element>
|
||||
</hylia>
|
11
examples/output.htm
Normal file
11
examples/output.htm
Normal file
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>Hello Hylia!</title>
|
||||
</head>
|
||||
<body>
|
||||
<h1>Hello Hylia!</h1>
|
||||
<p>This is an example content.</p>
|
||||
<h1>Hello!</h1><br><h2>Hello again!</h2>
|
||||
</body>
|
||||
</html>
|
|
@ -1,18 +1,10 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
|
||||
<title>Hello Hylia!</title>
|
||||
|
||||
</head>
|
||||
<title>Hello Hylia!</title>
|
||||
<body>
|
||||
|
||||
<header />
|
||||
<p>This is the main content.</p>
|
||||
|
||||
</body>
|
||||
|
||||
<h1> Welcome to Hylia! </h1>
|
||||
<p>This is a reusable header component.</p>
|
||||
|
||||
<header>
|
||||
<h1>Hello Hylia!</h1>
|
||||
<p>
|
||||
<p>This is an example content.</p>
|
||||
</html>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue