|
|
|
|
Thread title: Smarty - Yes or No? |
|
|
|
|
|
Thread tools
Search this thread
Display Modes
|
|
10-30-2007, 10:48 AM
|
#1
|
Status: Request a custom title
Join date: Dec 2005
Location:
Expertise:
Software:
Posts: 2,741
|
Smarty - Yes or No?
Some experts(exclusions are coder of PHPLD,phpBB and more) don't like the use of Smarty. Somehow, I agree with them because I have to learn a new language(sub-language) which is not similar to PHP. I like the cleanliness of a templating engines like Savant(lacks documentation) but then another confusion bumps into my mind that if smarty is slow, why do scripts like PHP link directory, phpBB uses the engines based off smarty?
Discuss!
|
|
10-30-2007, 11:10 AM
|
#2
|
Status: .
Join date: Jan 2007
Location:
Expertise:
Software:
Posts: 1,868
|
Nope, its hard to skin for the none PHPer
|
|
10-30-2007, 01:47 PM
|
#3
|
Status: Junior Member
Join date: Sep 2007
Location: Australia
Expertise: Programming, UX
Software:
Posts: 80
|
I wouldn't, but I could be a bit biased since I usually prefer to build things on my own so I know how it works entirely.
I've considered using it but there was a few others that seemed smaller and more efficient, but usually went with something custom
|
|
10-30-2007, 02:24 PM
|
#4
|
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
Posts: 6,894
|
I like smarty, true that it is its own language, but I picked up enough to do almost anything with it in a day. Smarty is really easy once you get the hang of it, I don't tend to leave much processing to the template which leaves out any advanced code.
|
|
10-30-2007, 06:04 PM
|
#5
|
Status: Junior Member
Join date: Oct 2007
Location: Canada
Expertise:
Software:
Posts: 50
|
I have recently switched over from a Template System I built back in 2001 (eek), and am currently loving Smarty.
Treating Smarty as a bad idea because it is like a 'sub language' is quite definitely not a valid claim. You'll learn quickly that learning industry standards certainly pays off for spending a few extra hours learning them. As for Smarty, it is generally accepted industry wide as a solid template system, and combining it with some of the off the shelf javascript libraries (yui, moo, dojo, etc...) makes it an incredible powerful tool for any website developer.
|
|
11-09-2007, 02:29 AM
|
#6
|
Status: Member
Join date: Feb 2007
Location:
Expertise:
Software:
Posts: 137
|
Not my sort of thing generally, i tend to try and stay away from it.
|
|
11-09-2007, 02:58 AM
|
#7
|
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
Posts: 6,894
|
|
|
11-09-2007, 11:14 PM
|
#8
|
Status: Request a custom title
Join date: Feb 2006
Location: Nottingham
Expertise:
Software:
Posts: 1,648
|
In my opinion, and a lot of other coders' opinions, Smarty isn't worth the files it is written in. Reasons?
- Parsing slows down the system overall
- Smarty has created its own pointless language
What's wrong with this, anyone?
PHP Code:
<?php if($szFlag & 6): ?>
<!-- Admin link -->
<?php endif; ?>
|
|
11-09-2007, 11:24 PM
|
#9
|
Status: Geek
Join date: Apr 2006
Location: Denver, CO
Expertise: Software
Software: Chrome, Notepad++
Posts: 6,894
|
Is that a statement against smarty or templating systems as a whole? Because if you have a better templating system, do share.
|
|
11-09-2007, 11:56 PM
|
#10
|
Status: Request a custom title
Join date: Feb 2006
Location: Nottingham
Expertise:
Software:
Posts: 1,648
|
Against Smarty and any other template systems that use their own home-grown languages. Each to their own when it comes to a template system - I just use the PHP approach like I've shown above.
|
|
|
|
|
|
|
|
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
|
|
|
|