Location: PHPKode > projects > SithTemplate > SithTemplate-1.1/docs/examples/05_inheritance_parent.html
<!DOCTYPE html>
<html lang="en">
 <head>
  <link rel="stylesheet" href="style.css">
  <title>{% block title %}Awesome HTML5 site{% endblock %}</title>
 </head>
 <body>
  <div id="main">
  {% block contents %}
   <p>
    This is default content of the block.
   </p>
   <p>
    It will be used in case no children template will override it,
    or when parent template will be rendered directly.
   </p>
  {% endblock %}
  </div>
  
  <div id="somethingelse">
  {% block other %}
   <p>
    Foo.
   </p>
  {% endblock %}
  </div>
</body>
</html>
Return current item: SithTemplate