I have a default, sun supplied, apache2 install on solaris10. It's running fine, everything's great. I'm looking to add another instance, fairly happy with how to do that apart from one thing - the SMF manifest.
Can i just edit the XML file sun supplied for the default apache2 and add in details... (2 Replies)
why do inode indices starts from 1 unlike array indexes which starts from 0
its a question from "the design of unix operating system" of maurice j bach
id be glad if i get to know the answer quickly
:) (0 Replies)
brothers why inode index starts from 1 unlike array inex which starts from 0
its a question from the design of unix operating system of maurice j.bach
i need to know the answer urgently...someone help please (1 Reply)
Hi,
I need the a help can please any one give me a suggestion for Exporting the CLASS PATH in service manifest file for Solaris 10
Here i have pasted the code
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<!-- Copyright 2007 Sun... (4 Replies)
Hi..
I have an application installed in Zones and I would like to have the application started on every system reboot and stop at every shutdown.
I created start/stop/restart script in /etc/init.d and placed S and K links in rc?d directories. This works fine.
but I want to use SMF for this... (0 Replies)
Hi All,
I have a file (FileNames.txt) which contains the following data in it.
$ cat FileNames.txt
MYFILE17XXX208Sep191307.csv
MYFILE19XXX208Sep192124.csv
MYFILE20XXX208Sep192418.csv
MYFILE22XXX208Sep193234.csv
MYFILE21XXX208Sep193018.csv
MYFILE24XXX208Sep194053.csv... (5 Replies)
Discussion started by: krish_indus
5 Replies
LEARN ABOUT DEBIAN
dancer::template::templatetoolkit
Dancer::Template::TemplateToolkit(3pm) User Contributed Perl Documentation Dancer::Template::TemplateToolkit(3pm)NAME
Dancer::Template::TemplateToolkit - Template Toolkit wrapper for Dancer
DESCRIPTION
This class is an interface between Dancer's template engine abstraction layer and the Template module.
This template engine is recomended for production purposes, but depends on the Template module.
In order to use this engine, use the template setting:
template: template_toolkit
This can be done in your config.yml file or directly in your app code with the set keyword.
Note that by default, Dancer configures the Template::Toolkit engine to use <% %> brackets instead of its default [% %] brackets. This
can be changed within your config file - for example:
template: template_toolkit
engines:
template_toolkit:
start_tag: '[%'
stop_tag: '%]'
You can also add any options you would normally add to the Template module's initialization. You could, for instance, enable saving the
compiled templates:
engines:
template_toolkit:
COMPILE_DIR: 'caches/templates'
COMPILE_EXT: '.ttc'
By default, Template is used, but you can configure Dancer to use a subclass with the "subclass" option.
engines:
template_toolkit:
subclass: My::Template
WRAPPER, META variables, SETs
Dancer already provides a WRAPPER-like ability, which we call a "layout". The reason we do not use TT's WRAPPER (which also makes it
incompatible with it) is because not all template systems support it. Actually, most don't.
However, you might want to use it, and be able to define META variables and regular Template::Toolkit variables.
These few steps will get you there:
o Disable the layout in Dancer
You can do this by simply commenting (or removing) the "layout" configuration in the config.yml file.
o Use Template Toolkit template engine
Change the configuration of the template to Template Toolkit:
# in config.yml
template: "template_toolkit"
o Tell the Template Toolkit engine who's your wrapper
# in config.yml
# ...
engines:
template_toolkit:
WRAPPER: layouts/main.tt
Done! Everything will work fine out of the box, including variables and META variables.
SEE ALSO
Dancer, Template
AUTHOR
This module has been written by Alexis Sukrieh
LICENSE
This module is free software and is released under the same terms as Perl itself.
perl v5.14.2 2012-01-27 Dancer::Template::TemplateToolkit(3pm)