NAME

yatt_lite README -- Introduction to YATT::Lite

SYNOPSIS

In file index.yatt:

<yatt:envelope title="test">
  My first YATT App! &yatt:repeat(foo,3);
</yatt:envelope>

In file .htyattrc.pl:

Entity repeat => sub {
  my ($this, $what, $count) = @_;
  $what x $count;
};

In file envelope.ytmpl:

<!yatt:args title="html?">
<!doctype html>
<html>
<head>
<title>&yatt:title;</title>
</head>
<body>
<h2>&yatt:title;</h2>
<yatt:body />
</body>
</html>

Output will be:

<!doctype html>
<html>
<head>
<title>test</title>
</head>
<body>
<h2>test</h2>
  My first YATT App! foofoofoo
</body>
</html>

DESCRIPTION

YATT is Yet Another Template Toolkit. YATT::Lite is latest version of YATT.

Unlike other template engines, YATT::Lite comes with its own Web Framework (WebMVC0) which runs under PSGI. So, you can concentrate on writing your most important parts: Views and Models.

For more project details, see https://github.com/hkoba/yatt_lite.

Next Steps

for Web Designers

To learn how to write yatt templates, please read yatt_manual.

for Programmers

To understand how yatt works, please read prog_guide.