Smarty Forum Index Smarty
The discussions here are for Smarty, a template engine for the PHP programming language.

Wrong documentation

 
Post new topic   Reply to topic    Smarty Forum Index -> Documentation
View previous topic :: View next topic  
Author Message
Dwza
Smarty Rookie


Joined: 09 Jan 2015
Posts: 7

PostPosted: Mon Mar 15, 2021 10:58 am    Post subject: Wrong documentation Reply with quote

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
View user's profile Send private message
AnrDaemon
Administrator


Joined: 03 Dec 2012
Posts: 1749

PostPosted: Wed Mar 17, 2021 12:15 pm    Post subject: Reply with quote

Relevant pull request is created.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Smarty Forum Index -> Documentation All times are GMT
Page 1 of 1

 
Jump to:  
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
Protected by Anti-Spam ACP