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

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

Serving Software Downloads in 956 Categories, Downloaded 50.174.746 Times

libhtmlTemplate 1.1.0

  Date Added: June 26, 2010  |  Visits: 552

libhtmlTemplate

Report Broken Link
Printer Friendly Version


Product Homepage
Download (88 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
USER REVIEWS
More Reviews or Write Review


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  
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  -  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  -  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  
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  
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 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  
File Utilities  -  Sync Breeze Network x64 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  -  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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB  
Libraries  -  wolfSSL 4.0.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...
3.88 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