Skip to content
Snippets Groups Projects
Commit 6fecf93d authored by Sergio Gómez's avatar Sergio Gómez
Browse files

Removed html extension on twig files

parent 54e4791a
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,13 @@ class SimpleSAML_XHTML_Template
*/
private $template = 'default.php';
/**
* The template name.
*
* @var string
*/
private $twig_template;
/*
* Main Twig namespace, to avoid misspelling it *again*
*/
......@@ -70,7 +77,7 @@ class SimpleSAML_XHTML_Template
*/
private function normalizeTemplateName($templateName)
{
if (strripos($templateName, '.twig.html')) {
if (strripos($templateName, '.twig')) {
return $templateName;
}
$phppos = strripos($templateName, '.php');
......@@ -81,7 +88,7 @@ class SimpleSAML_XHTML_Template
if ($tplpos) {
$templateName = substr($templateName, 0, $tplpos);
}
return $templateName.'.twig.html';
return $templateName.'.twig';
}
......
File moved
File moved
......@@ -15,14 +15,14 @@
<body>
<div id="wrap">
{% block header %}{% include "_header.twig.html" %}{% endblock %}
{% block header %}{% include "_header.twig" %}{% endblock %}
<div id="content">
{% block content %}{% endblock %}
</div><!-- #content -->
<div id="footer">
{% block footer %}{% include "_footer.twig.html" %}{% endblock %}
{% block footer %}{% include "_footer.twig" %}{% endblock %}
</div>
</div><!-- #wrap -->
......
{% extends "base.twig.html" %}
{% extends "base.twig" %}
{% block content %}
<div id="portalmenu" class="ui-tabs ui-widget ui-widget-content ui-corner-all">
<ul class="tabset_tabs ui-tabs-nav ui-helper-reset ui-helper-clearfix ui-widget-header ui-corner-all">
......
{% extends "base.twig.html" %}
{% extends "base.twig" %}
{% block content %}
<p>This page exists as a sandbox to play with twig without affecting anything else. The template is in ./templates.</p>
<p>{{ sometext }}</p>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment