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 29.546.121 Times

Text::MicroMason::Functions 1.992

  Date Added: March 18, 2010  |  Visits: 590

Text::MicroMason::Functions

Report Broken Link
Printer Friendly Version


Product Homepage
Download (71 downloads)



Text::MicroMason::Functions Perl module contains Function Exporter for Simple Mason Templates. SYNOPSIS Use the execute function to parse and evalute a template: use Text::MicroMason::Functions qw( execute ); print execute($template, name=>Dave); Or compile it into a subroutine, and evaluate repeatedly: use Text::MicroMason::Functions qw( compile ); $coderef = compile($template); print $coderef->(name=>Dave); print $coderef->(name=>Bob); Templates stored in files can be run directly or included in others: use Text::MicroMason::Functions qw( execute_file ); print execute_file( "./greeting.msn", name=>Charles); Safe usage restricts templates from accessing your files or data: use Text::MicroMason::Functions qw( safe_execute ); print safe_execute( $template, name=>Bob); All above functions are available in an error-catching "try_*" form: use Text::MicroMason::Functions qw( try_execute ); ($result, $error) = try_execute( $template, name=>Alice); As an alternative to the object-oriented interface, text containing MicroMason markup code can be compiled and executed by calling the following functions. Please note that this interface is maintained primarily for backward compatibility with version 1 of Text::MicroMason, and it does not provide access to some of the newer features. Each function creates a new MicroMason object, including any necessary traits such as Safe compilation or CatchErrors for exceptions, and then passes its arguments to an appropriate method on that object. You may import any of these functions by including their names in your use Text::MicroMason statement..

Requirements: No special requirements
Platforms: Linux
Keyword: Execute Function Function Exporter Function Exporter Simple Mason Templates Functions Perl Libraries Micromason Name Perl Module Print Programming Qw Safe Textmicromasonfunctions
Users rating: 0/10

License: Freeware Size: 69.63 KB
USER REVIEWS
More Reviews or Write Review


TEXT::MICROMASON::FUNCTIONS RELATED
Libraries  -  HTTP::Server::Simple::Mason 0.09
HTTP::Server::Simple::Mason is an abstract baseclass for a standalone mason server. SYNOPSIS my $server = MyApp::Server->new(); $server->run; package MyApp::Server; use base qw/HTTP::Server::Simple::Mason/; sub mason_config { return (...
13.31 KB  
Miscellaneous  -  Convenience 'timeit' function 1.1
This function makes it easier to use the timeit module from the interactive interpreter. You should just specify function with (optional) arguments to run, optional number of runs, and optional name of module (which if not specified defaults to...
 
Miscellaneous  -  Tail Call Optimization Decorator 1.0
This function decorates a function with tail call optimization. It does this by throwing an exception if it is it's own grandparent, and catching such exceptions to fake the tail call optimization. This function fails if the decorated function...
 
Development Tools  -  Improved WHOS function 1.0
WHOSBETTER is a function that sorts the WHOS output according a user defined input (ie name, size, bytes, type etc.). The output also includes the FULL size rather than the #-D labels that TMW prefers. The output is also human readable and...
10 KB  
Libraries  -  Text::MicroMason::Mason 1.96.0
Text::MicroMason::Mason is a simple compiler for Mason-style Templating. SYNOPSIS Mason syntax provides several ways to mix Perl into a text template: $name % if ( $name eq Dave ) { Im sorry , Im afraid...
47.1 KB  
Entertainment  -  HL Drawing Lite 1.0
1) The software has a painting and puzzle function. 2) gorgeous interface and simple. 3) Built over 300 kinds of pictures. Are free for users to piece together. 4) 36 kinds of brushes, adjustable thickness. 5) can send e-mail. 6)...
62.1 MB  
Libraries  -  Rose::DateTime::Util 0.532
Rose::DateTime::Util Perl module contains some simple DateTime wrapper functions. SYNOPSIS use Rose::DateTime::Util qw(:all); $now = parse_date(now); $then = parse_date(12/25/2001 11pm); print $now->day_of_week; # e.g., "Monday" #...
12.29 KB  
Programming  -  Util::Any for Linux 0.18
For the people like the man who cannot remember uniq function is in whether List::Util or List::MoreUtils. And for the newbie who don't know where useful utilities is. Perl has many modules and they have many utility functions. For...
20.48 KB  
Libraries  -  Tk::Help 0.2
Tk::Help is simple widget for creating a help system for Perl/Tk applications. SYNOPSIS use Tk::Help; my $help = $main->Help(-variable => @array); This is an answer to a personal need to be able to create help systems for my Perl/Tk...
5.12 KB  
Network & Internet  -  cdServer 0.8
cdServer is a simple HTTP server based on the standard Python library module SimpleHTTPServer. cdServer is designed to serve (static) contents off a CD-ROM. cdServer provides a simple interface for special (interactive) functions implemented in an...
84.99 KB  
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  -  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  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB