Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    libhtmlTemplate 1.1.0

    Download button

    No screenshots available
    Downloads: 270  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Rui Barreiros | More programs
    GPL / FREE
    May 19th, 2006, 15:37 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    libhtmlTemplate description

    libhtmlTemplate, is a library to aid developers to separate content from code.

    libhtmlTemplate, is a library to aid developers to separate content from code. libhtmlTemplate is very simple, small and easy to use, it's my first c project, so any feedback with the purpose of helping to improve the library is welcome as well as any bug report and feature request, ill be glad to help in what i can, and know

    Examples:

    #include < htmlTemplate.h >

    int main(int argc, char **argv) {
    // There are three ways of instatiating a Template object

    // This is the generic one
    Template t;

    // This one, predefines on instatiation the default path where the templates are
    Template t_w_path("/var/www/html/templates");

    // This one, predefines the path, and the template file
    Template t_w_file_path("/var/www/html/template", "index.tpt");


    // When you instatiate the template object as the generic one,
    // the dir and file are the default './' and 'index.tpt' so
    // if you want to change them, you must use the following methods

    // Set the template dir
    t.setDir("/var/www/mytemplatedir");

    // Set the template file
    t.setTemplate("mytemplate.tpt");

    // Now you are ready to replace the predefined template values, with the ones you want
    // Suppose you have a tag in the template, {{MYVALUE}}
    // to place your value in his location just use addText(), notice the absense of {{ & }}

    t.addText("MYVALUE", "This is my text");

    // Now you can automatically display the result by calling playTemplate

    cout

    Product's homepage

      


    TAGS:

    separate content | html template | template library | libhtmlTemplate | separate | content

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM