Skip to content

Commit

Permalink
Update the documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
scottchiefbaker committed Apr 21, 2022
1 parent 0583df7 commit 7635185
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docs/001_basic_vars.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

///////////////////////////////////////////////////////////////////////////////
// Basic syntax for assigning variables to the templating system. You can //
// assign scalars, arrays, and hashes. //
///////////////////////////////////////////////////////////////////////////////

include("../sluz.class.php");
$s = new sluz();

Expand Down
5 changes: 5 additions & 0 deletions docs/010_basic_if.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

///////////////////////////////////////////////////////////////////////////////
// Sluz has if/then logic as well. If an if statement references a variable //
// that is not assigned it will be treated as if it were false. //
///////////////////////////////////////////////////////////////////////////////

include("../sluz.class.php");
$s = new sluz();

Expand Down
5 changes: 5 additions & 0 deletions docs/030_basic_foreach.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<?php

///////////////////////////////////////////////////////////////////////////////
// Foreach works on either arrays or hashes. You can use regular PHP foreach //
// syntax with foreach ($foo as $bar) or foreach ($foo as $key => $val). //
///////////////////////////////////////////////////////////////////////////////

include("../sluz.class.php");
$s = new sluz();

Expand Down
7 changes: 7 additions & 0 deletions docs/040_literal_blocks.php
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
<?php

///////////////////////////////////////////////////////////////////////////////
// You may need a literal '{' or '}' in your HTML. These characters are //
// common in both CSS and Javascript. To prevent Sluz from interpretting //
// them as code block just use {literal}. //
// Note: Brackets with whitespace on both sides do NOT require {literal} //
///////////////////////////////////////////////////////////////////////////////

include("../sluz.class.php");
$s = new sluz();

Expand Down

0 comments on commit 7635185

Please sign in to comment.