New template compile error in 2.1.5
Posted: Thu Oct 13, 2016 1:34 pm
I have a template that outputs text or HTML based on a query parameter. This works well in 2.1.4 (and a few versions below), but fails with the following error ins 2.1.5
Any hints as to how adapt in my code to account for the changes in 2.1.5 is much appreciated.
Note: I had put spaces in the HTML tags in the code above so it would look right in this posting.
TIA,
Sanjay
The simplified template code is as follows:Syntax error in template "tpl_top:36" on line 9 "" unclosed {else} tag
Code: Select all
{content assign="my_content" wysiwyg="false"}
{strip}
{process_pagedata}
{/strip}
{if isset($smarty.get.text)}
This is plain text
{else}
<!DOCTYPE html>
< html>
< head>
<title>Test</title>
</ head>
< body>
This is HTML body stuff
</ body>
</ html>
{/if}
Note: I had put spaces in the HTML tags in the code above so it would look right in this posting.
TIA,
Sanjay