|
Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon. |
|
View previous topic :: View next topic |
Author |
Message |
Dwza Smarty Rookie
Joined: 09 Jan 2015 Posts: 7
|
Posted: Mon Mar 15, 2021 10:58 am Post subject: Wrong documentation |
|
|
I think there is a small mistake in the append prepend documentation here.
It says:
Quote: | parent.tpl
Code: | <html>
<head>
<title>{block name="title"}Title - {/block}</title>
</head>
</html>
|
child.tpl
Code: | {extends file="parent.tpl"}
{block name="title" prepend}
Page Title
{/block} |
The result would look like
Code: | <html>
<head>
<title>Title - Page Title</title>
</head>
</html> |
|
But actually this would end in
Code: | <html>
<head>
<title>Page TitleTitle - </title>
</head>
</html> |
|
|
Back to top |
|
AnrDaemon Administrator
Joined: 03 Dec 2012 Posts: 1785
|
Posted: Wed Mar 17, 2021 12:15 pm Post subject: |
|
|
Relevant pull request is created. |
|
Back to top |
|
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|