Skeleton MVC Crud Node Js + Express Js + MongoDB - 6ta Parte
/* begin /view/error.twig */
{% extends 'layout.twig' %}
{% block body %}
<h1>{{message}}</h1>
<h2>{{error.status}}</h2>
<pre>{{error.stack}}</pre>
{% endblock %}
/* end /view/error.twig */
/* begin /view/index.twig */
{% extends 'layout.twig' %}
{% block body %}
<h1>{{title}}</h1>
<p>Welcome to {{title}}</p>
{% endblock %}
/* end /view/index.twig */
/* begin /view/layout.twig */
<!DOCTYPE html>
<html>
<head>
<title>{{ title }}</title>
</head>
<body>
{% block body %}{% endblock %}
</body>
</html>
/* end /view/layout.twig */
Comentarios
Publicar un comentario