Comments (3)
Upgrading to v4 should be quite painless, check the CHANGELOG.md for some minor issues.
Upgrading to v5 may require some changes. I intend to write an upgrade guide before the official release of v5.
from smarty.
In the project clipbucket i tried to upgrade to version 4 but i did fail at it , i aware of your template engine limitations , did you manage to overcome in newer versions ?:
Performance Overhead: Smarty can introduce some performance overhead as it compiles templates into PHP code, which can slow down the application compared to directly embedding PHP code in the templates.
Learning Curve: If you're new to Smarty, there can be a learning curve involved in understanding its syntax and functionality.
Limited Logic: Smarty deliberately limits the logic that can be placed within templates to encourage separation of concerns. While this is a feature, it can be limiting when you need more complex logic in your templates.
Complex Templates: For very complex templates with a lot of conditionals and loops, Smarty can become cumbersome to work with, and you may end up with verbose templates.
Customization: Customizing and extending Smarty can be challenging, and it may not be as flexible as other template engines in some cases.
Lack of Native Debugging Tools: Debugging Smarty templates can be more challenging compared to debugging PHP code since it doesn't offer the same level of native debugging tools.
Large Memory Footprint: The compiled template files can occupy a significant amount of memory, which can be a concern in situations with limited server resources.
Limited Built-in Functions: Smarty has a limited set of built-in functions and modifiers, which means you might need to write custom PHP plugins for complex operations.
Dependency on PHP: Smarty is specifically designed for use with PHP. If you want to switch to another programming language, you'll need to find an alternative template engine.
from smarty.
@orlovskyjavaprofi did you generate that list of "limitations" with GPT?
If you have any specific issues, please open a more detailed bug report.
from smarty.
Related Issues (20)
- Smarty registerPlugin HOT 4
- Auto-escaping on function and block handlers is underdefined HOT 2
- Compilation error ? HOT 2
- Debug function is broken HOT 1
- Undefined array keys warnings. HOT 2
- PHP 8.3.2 error with Smarty 4.3.4
- escape_html generates incorrect php code
- nocache in cachable plugins
- {$smarty.cookies.username} in 5.0.0 rc2 HOT 5
- Improve Smarty 5 documentation
- Add template path to CompilerException to enable rich debug features
- Containment operators HOT 5
- Regex matching operator HOT 1
- Re-add support for implode, substr and json_encode HOT 3
- Deprecate mb_wordwrap modifier
- strip inserts space after comments. HOT 4
- last version that supports php v7.0.x? HOT 9
- Smarty 4 Error - unknown tag 'counter' HOT 1
- Smarty 4 Error - unknown tag 'counter' HOT 6
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from smarty.