Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 30.066.724 Times

libhtmlTemplate 1.1.0

  Date Added: June 26, 2010  |  Visits: 419

libhtmlTemplate

Report Broken Link
Printer Friendly Version


Product Homepage
Download (72 downloads)

libhtmlTemplate, is a library to aid developers to separate content from code. libhtmlTemplate is very simple, small and easy to use, its 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 << "Using playTemplate" << endl << t.playTemplate() << endl; // Lets suppose you have in the index.tpt a tag called {{MYBLOCK}} (on the t_w_file_path object) // and you want to place there the content of a parsed template, lets say mytemplate.tpt, // simple, use the evaluateTemplate method, like this cout << "Using evaluateTemplate" << endl; t_w_file_path.addText("MYBLOCK", t.evaluateTemplate); cout << t_w_file_path.playTemplate() << endl; // simple right? // there are also some util methods in case you ever need // Returns the current defined dir cout << "t object -> dir: " << t.getDir() << endl; // Returns the current defined file cout << "t object -> file: " << t.getTemplate() << endl; // Returns the value defined for a tag cout << "t object -> MYVALUE: " << t.getText("MYVALUE") << endl; // now for all the other objects cout << "t_w_path object -> dir: " << t_w_path.getDir() << endl; cout << "t_w_path object -> file: " << t_w_path.getTemplate() << endl; cout << "t_w_file_path object -> dir: " << t_w_file_path.getDir() << endl; cout << "t_w_file_path object -> file: " << t_w_file_path.getTemplate() << endl; // There is also another one that it has not much use for you, // i used it only for debugging purposes // Dumps the template file cout << "t object Template file: " << endl; cout << t.dumpFile() << endl; return 0; } Whats New in This Release: - libhtmlTemplate: Patch by Brian Hsu to compile with GCC 3.X versions.

Requirements: No special requirements
Platforms: Linux
Keyword: Aid File Libhtmltemplate Libraries Library One Path Programming Template
Users rating: 0/10

License: Freeware Size: 26.62 KB
LIBHTMLTEMPLATE RELATED
Libraries  -  Xephyrus File Upload Tag Library 1.0
Xephyrus File Upload Tag Library provides an easy way to process files uploaded from a web form from within JSP pages. It is a tag library wrapper around the Jakarta Commons FileUpload utility. Whats New in This Release: - added keepPath...
25.6 KB  
Libraries  -  Template::Library::Splash 2.15
Template::Library::Splash is a template library for building stylish HTML user interfaces. NOTE: This documentation is incomplete, incorrect and outdated. The Splash! library is still evolving and subject to change. See the examples for a much...
778.24 KB  
Libraries  -  The CImg Library 1.2.2
The CImg Library is a C++ Template Image Processing Library. It is portable (Unix/X11, Windows, MacOS X), efficient, and simple to use..
2.7 MB  
Libraries  -  Aapl C++ Template Library 2.14
Aapl is a C++ template library for generic programming. Aapl supports different generic programming paradigms by providing variations of standard data structures. For example, a by-value linked list template may be used to store a user supplied...
122.88 KB  
Libraries  -  File::Basename 5.8.8
File::Basename is a Perl module to parse file paths into directory, filename and suffix. SYNOPSIS use File::Basename; ($name,$path,$suffix) = fileparse($fullname,@suffixlist); $name = fileparse($fullname,@suffixlist); $basename =...
12.2 MB  
Programming  -  PATH programming language 0.33
PATH is a very different programming language than what you are probably used to if youre an average programmer. If youve programmed in the language Brainf*ck, youll recognize the memory cell architecture. Also, Befunge programmers will recognize...
10.24 KB  
Libraries  -  libnetfilter_conntrack 0.0.30
libnetfilter_conntrack is a userspace library providing a programming interface (API) to the in-kernel connection tracking state table. libnetfilter_conntrack has been previously known as libnfnetlink_conntrack and libctnetlink....
215.04 KB  
File Management  -  Compute relative path 1.0
This script could help you to know the relative path from one path to another in order to create a symbolic link, a relative reference in URL, etc.
 
Libraries  -  Template::Library::HTML 2.15
Template::Library::HTML is a template library for building basic HTML pages. NOTE: This documentation is incomplete and may be incorrect in places. The html template library is distributed as part of the Template Toolkit. It can be found in the...
778.24 KB  
File Utilities  -  Sync Breeze Network 3.5.14
SyncBreeze is a free, easy-to-use and fast file synchronization utility allowing one to synchronize files between directories, disks and networked computers. SyncBreeze provides multiple one-way and two-way file synchronization modes,...
4.2 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  wolfSSL 3.12.0
The wolfSSL embedded SSL/TLS library is a lightweight SSL library written in ANSI standard C and targeted for embedded and RTOS environments - primarily because of its small size, speed, and feature set. It is commonly used in standard operating...
2.73 MB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB