SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Member
    Join Date
    Mar 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Whats the best template system ?

    Hello

    I'm working to a develop a new framework for myself and i come to a big issue choosing the right template system. I'm interested the most in making it easy for future developers who will work with it. I have 2 options, using a template with a macro scripting like smarty or using something more basic where the php takes care of all the "logic". Until now i used something like the one bellow and was pretty useful.

    [tablehead]
    html code
    {DATA}
    footer html code
    [/tablehead]

    [tablerow]
    some html content {VARS} {VARS2} all comes from database
    [/tablerow]

    I coudnt find the pros and cons for each so i can decide the way i should go. Smarty its very big and slower then the other solution and you need to learn another scripting

    Thanks

  2. #2
    Foozle Reducer ServerStorm's Avatar
    Join Date
    Feb 2005
    Location
    Burlington, Canada
    Posts
    2,699
    Mentioned
    89 Post(s)
    Tagged
    2 Thread(s)
    Hi,

    Normally I use Plain PHP as that is what PHP really is - a templating language, but out of the bunch of the xtra-templating systems Twig is really good.

    Regards,
    Steve
    ictus==""

  3. #3
    SitePoint Member
    Join Date
    Mar 2012
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Hi

    Thanks a lot, this is really a nice template system and pretty light compared to smarty


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •