Created
June 10, 2014 00:20
-
-
Save fdcore/9068d8ca85fd7e5a039a to your computer and use it in GitHub Desktop.
Cool features for title if use twig template engine
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<title>{% block title %}{{ title|default('My Default Title') }}{% endblock %}</title> | |
<!-- | |
in code | |
$tags['title'] = 'my title'; | |
or | |
{% block title %}my title{% endblock %} | |
--> | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment