Smarty Forum Index Smarty
WARNING: All discussion is moving to https://reddit.com/r/smarty, please go there! This forum will be closing soon.

potential upgrade questions

 
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General
View previous topic :: View next topic  
Author Message
elrobbo6
Smarty Rookie


Joined: 01 Feb 2016
Posts: 9

PostPosted: Thu May 12, 2022 3:19 am    Post subject: potential upgrade questions Reply with quote

So, the company I work for is going through server upgrades and we are currently using a version of smarty from 2007... yes I know. We are going to need to utilize HTML5 canvas and some javascript based things. I have had issues with getting that stuff to work on our current version. The smarty we have is broke on the new server and looking at either upgrading to new version or scrapping it. My question is, does the new smarty function well with HTML5 and the canvas object? Does it actually work with javascript/jquery that needs to be accept variables dynamically and update? These are the major issues iv'e had with the old version we are using. Just don't want to go through the upgrade and find out it still doesn't work with the new version.

Thanks for any help.
Back to top
View user's profile Send private message
bsmither
Smarty Elite


Joined: 20 Dec 2011
Posts: 322
Location: West Coast

PostPosted: Thu May 12, 2022 10:11 pm    Post subject: Reply with quote

Smarty does its thing on source files at the server. The source files can be anything.

The only consideration that the programmer needs to be aware of, is that the source file must not mimic Smarty's delimiters -- which, by default, is the brace pair with no whitespace on the insides:
Code:
{command args} Smarty
{
  javascript;
}

The visitor's web browser concerns itself with interpreting HTML5, canvas, making follow-on requests for page resources, executing javascript, etc.

The server upgrade might get PHP 8, which then requires Smarty 4. (I am experimenting with PHP 8.1 and Smarty 4.1, and have found only two things I needed to change in the templates I work with.)
Back to top
View user's profile Send private message
Display posts from previous:   
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Smarty Forum Index -> General 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