This commit is contained in:
2019-02-06 00:49:12 +03:00
commit 8dbb1bb605
4796 changed files with 506072 additions and 0 deletions

9
bml/test/tutorial2/_config.bml Executable file
View File

@@ -0,0 +1,9 @@
LookRoot $testlookroot
DefaultScheme scheme
DefaultLanguage en
AllowOldSyntax 0
AllowCode 1
AllowTemplateCode 1

18
bml/test/tutorial2/index.bml Executable file
View File

@@ -0,0 +1,18 @@
<?page
title=>FooBar Enterprises - Page
body<=
<?h1 FooBar Enterprises - Page h1?>
<hr />
<?header Headers - What good are they? header?>
<p class="para" style="text-align: justify">
This is just an introductory text. The normal way to include text like this
is to write it in Latin, but since I don't know Latin, you'll have to settle
with this little paragraph.
</p>
<?header Templates are for Wimps! header?>
<p class="para">
I'd rather have to edit all of my pages by hand when I decide to change the
unified look of my site!
</p>
<=body
page?>

View File

@@ -0,0 +1,21 @@
<html>
<head>
<title>FooBar Enterprises - Page</title>
</head>
<body>
<h1 class="header">FooBar Enterprises - Page</h1>
<hr />
<div class="header"><strong>Headers - What good are they?</strong></div>
<p class="para" style="text-align: justify">
This is just an introductory text. The normal way to include text like this
is to write it in Latin, but since I don't know Latin, you'll have to settle
with this little paragraph.
</p>
<div class="header"><strong>Templates are for Wimps!</strong></div>
<p class="para">
I'd rather have to edit all of my pages by hand when I decide to change the
unified look of my site!
</p>
</body>
</html>

13
bml/test/tutorial2/scheme.look Executable file
View File

@@ -0,0 +1,13 @@
page<=
{F}<html>
<head>
<title>%%title%%</title>
</head>
<body>
%%body%%
</body>
</html>
<=page
header=>{D}<div class="header"><strong>%%DATA%%</strong></div>
h1=>{D}<h1 class="header">%%DATA%%</h1>