Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

test::inline::content::simple(3pm) [debian man page]

Test::Inline::Content::Simple(3pm)			User Contributed Perl Documentation			Test::Inline::Content::Simple(3pm)

NAME
Test::Inline::Content::Simple - Simple templating Content Handler SYNOPSIS
In your inline2test.tpl ---------------------- #!/usr/bin/perl -w use strict; use Test::More [% plan %]; $| = 1; [% tests %] 1; DESCRIPTION
It is relatively common to want to customise the contents of the generated test files to set up custom environment things on an all-scripts basis, rather than file by file (using =begin SETUP blocks). "Test::Inline::Content::Simple" lets you use a very simple Template Toolkit style template to define this information. It contains only two tags, "plan" and "tests". The "plan" tag will be inserted as either "tests =" 123> or 'no_plan'. The "tests" tag will be replaced by the actual testing code. METHODS
new $filename Manually create a new "Test::Inline::Content::Simple" object. Takes as parameter a single filename which should contain the template code. Returns a new "Test::Inline::Content::Simple" object, or "undef" on error. template The "template" accessor returns the template content for the object process $Inline, $Script The "process" method is unchanged from "Test::Inline::Content". SUPPORT
See the main SUPPORT section. AUTHOR
Adam Kennedy <adamk@cpan.org>, <http://ali.as/> COPYRIGHT
Copyright 2004 - 2010 Adam Kennedy. This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself. The full text of the license can be found in the LICENSE file included with this module. perl v5.12.4 2010-11-22 Test::Inline::Content::Simple(3pm)

Check Out this Related Man Page

Inline::Wrapper::Module(3)				User Contributed Perl Documentation				Inline::Wrapper::Module(3)

NAME
Inline::Wrapper::Module - Internal object wrapper for individual Inline modules. SYNOPSIS
use Inline::Wrapper::Module; DESCRIPTION
Inline::Wrapper::Module is used internally by Inline::Wrapper, and should not be used directly. It will croak if you attempt to do so. It is a descendent class of Inline::Wrapper. METHODS
new() Takes the same arguments as "new()" in Inline::Wrapper, but also requires a module_name and lang_ext argument. Don't use this. It will croak if you try to use it directly. initialize() Initialize the object instance. DESTROY() Destructor to clean up the object instance, and wipe the private code module namespace created when binding the symbol list. INHERITANCE
As Inline::Wrapper::Module is an inherited class from Inline::Wrapper, all methods that apply to the base class also apply to objects of this class. However, note that this has the following effects, due to the semantics of the load()/run() steps: auto_reload settings vs. when method effects take place: auto_reload value: | FALSE TRUE --------------------+------------------------------------------ set_base_dir() | no effect after next reload / run() set_language() | no effect after next reload / run() add_language() | no effect after next reload / run() Please read through "load()" in Inline::Wrapper and "run()" in Inline::Wrapper for insight into why the implementation works like this. SEE ALSO
Inline::Wrapper The Inline documentation. The Inline-FAQ list. The examples/ directory of this module's distribution. AUTHOR
Please kindly read through this documentation and the examples/ thoroughly, before emailing me with questions. Your answer is likely in here. Also make sure that your issue is actually with the Inline::Wrapper modules, and not with Inline itself. Jason McManus (INFIDEL) -- "infidel AT cpan.org" LICENSE
Copyright (c) Jason McManus This module may be used, modified, and distributed under the same terms as Perl itself. Please see the license that came with your Perl distribution for details. perl v5.18.2 2010-03-10 Inline::Wrapper::Module(3)
Man Page