10 More Discussions You Might Find Interesting
1. UNIX for Beginners Questions & Answers
Hi there,
I'm currently preparing for an exam and came across a question that I don't really know how to answer.
"You want to set up a hard drive for a videoserver under linux.
- The videofiles will have a size of at least 10MB and a maximum of 8BG.
- The hard drive has a disk space of... (1 Reply)
Discussion started by: Eggsy
1 Replies
2. AIX
Hi Folks,
I am facing an issue with the performance.
P4 with 1 processor and 16 GB RAM and SAN HDD = Oracle report takes 25 minutes
P5 with 2 processors and 16 GB RAM internall HDD with LPAR = Oracle Report takes 1 hour 15 minutes ( please note I have assigned all the max processors and... (7 Replies)
Discussion started by: filosophizer
7 Replies
3. Solaris
Trying to figure out the best method of security for oracle user accounts. In Solaris 10 they are set as regular users but have nologin set forcing the dev's to login as themselves and then su to the oracle users.
In Solaris11 we have the option of making it a role because RBAC is enabled but... (1 Reply)
Discussion started by: os2mac
1 Replies
4. UNIX for Dummies Questions & Answers
i just got a copy of windows and when i go to install it, it says i cant because it needs an ntfs file system. can anyone help me format my hard drive through linux? (2 Replies)
Discussion started by: camroc84
2 Replies
5. UNIX for Dummies Questions & Answers
I have a Sun Blade 1500 (sparc)
I have two HDD's both configured with Solaris 10.
How do I chose at boot which HDD I want to use?
I've had a look through the FAQ, also done a web search but haven't come up with requisite info.
touch /reconfigure does not seem to help.
Any suggestions... (8 Replies)
Discussion started by: lewtargett
8 Replies
6. UNIX for Dummies Questions & Answers
Over the last few months the HDD spins louder and louder, so I fiqured its time to replace the HDD. Its been running 24/7/365 since 98 :eek:. yes i said since 98 :D
I have an IBM system 43P Model 240. 233 MHz. running AIX Version 4.
The current HDD is an IBM DGHS COMP IEC -950
FRU PN#... (5 Replies)
Discussion started by: Chevy89rocks
5 Replies
7. UNIX for Dummies Questions & Answers
I have a script which will look for a test folder under the parent directory. If the folder contains test folder then create the same directory structure in other remote machine.
Once the directories are created then transfer all the contents of that test folder.
this is what i am doing :-
... (2 Replies)
Discussion started by: chris1234
2 Replies
8. SCO
Hi guys,
I have this quick question , is it posible to isntall SCO 5.0.7 on a serial ATA and if it is can you tell me how or maybe a website that has some info about this.
I'm not using any raid, just one HDD.
Thanks a lot (0 Replies)
Discussion started by: josramon
0 Replies
9. Solaris
Hi theres
I am quite new to solaris, I have 40GB HDD in which I have created only 10 GB partition & installed solaris 10. Now I want to add another 10GB from remaining 30GB space. I tried this with format utility but I get stuck after I create fdsik partition. After creating this I cant... (1 Reply)
Discussion started by: i_mroy
1 Replies
10. UNIX for Dummies Questions & Answers
I currently have one user (USER1) that's a member of group 'A'.
I want to create a bunch of users and have them all have access to READ all of USER1's files. Should I create all of the new users and have them all be members of a new group (group 'B')?? It looks like when USER1 creates a file it... (2 Replies)
Discussion started by: FredSmith
2 Replies
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)