Sponsored Content
The Lounge What is on Your Mind? Announcement: New Discourse Site to Go Live this Weekend Post 303045441 by Neo on Friday 20th of March 2020 10:17:04 PM
Old 03-20-2020
FYI:

We have started the process of the "final migration" to the new community site.

New posts and new registrations on [ICODE]www.unix.com[/ICODE] are disabled.

Details on the site site coming soon.

Please stand by and thank you for your patience.
These 3 Users Gave Thanks to Neo For This Post:
 

5 More Discussions You Might Find Interesting

1. Web Development

Setting up Development and Live web site environment

Hi, I am fairly new to unix so please go easy on me.. I have a VPS on which I would like to setup a development and live web site environment and can't seem to work out what is the best technique for doing so. I would like to be able to mirror the live site and have a "check out" and... (0 Replies)
Discussion started by: ciantrius
0 Replies

2. IP Networking

How to establish site to site vpn - Linux machine and cisco asa?

Hi, I am trying to establish vpn between my linux server and cisco asa at client side. I installed openswan on my cent os. Linux Server eth0 - 182.2.29.10 Gateway - 182.2.29.1 eth1 - 192.9.200.75 I have simple IPtables Like WAN="eth0" LAN="eth1" (0 Replies)
Discussion started by: ashokvpp
0 Replies

3. IP Networking

Does cisco 1921 router support site to site VPNs using IPSec?

Q: "Does Cisco 1921 router support,, act as an endpoint for, site to site VPNs using IPSec? If so, how many? " A: If you get the Cisco 1921/k9 with the security services bundle then it will have built in security features. Cisco, typically includes IP Sec tunnels I believe as part of that... (0 Replies)
Discussion started by: Ayaerlee
0 Replies

4. IP Networking

IPSec Openswan Site to Site VPN - Big Pain

Hi @all, I try to connect 2 LANs with IPSec/Openswan LAN 1: 192.168.0.0/24 LAN 2: 192.168.1.0/24 This is my Config: conn HomeVPN # # Left security gateway, subnet behind it, nexthop toward right. left=192.168.1.29 ... (1 Reply)
Discussion started by: bahnhasser83
1 Replies

5. What is on Your Mind?

Update: UserCP Screeching Frog 0.7641 - Changed Live Chat to Live Updates

Update: UserCP Screeching Frog 0.7641 - Changed Live Chat to Live Updates In this version of the UserCP, I have changed "Live Chat" to "Live Updates" by disabling the ability to post in the "live chat" area and changed the name to "Live Updates" The reason for this change is that experienced... (6 Replies)
Discussion started by: Neo
6 Replies
Catalyst::Helper::View::TTSite(3pm)			User Contributed Perl Documentation		       Catalyst::Helper::View::TTSite(3pm)

NAME
Catalyst::Helper::View::TTSite - Helper for TT view which builds a skeleton web site SYNOPSIS
# use the helper to create the view module and templates $ script/myapp_create.pl view HTML TTSite # add something like the following to your main application module sub message : Global { my ( $self, $c ) = @_; $c->stash->{template} = 'message.tt2'; $c->stash->{message} ||= $c->req->param('message') || 'No message'; } sub default : Private { my ( $self, $c ) = @_; $c->stash->{template} = 'welcome.tt2'; } sub end : Private { # Or use Catalyst::Action::RenderView my ( $self, $c ) = @_; $c->forward( $c->view('HTML') ); } DESCRIPTION
This helper module creates a TT View module. It goes further than Catalyst::Helper::View::TT in that it additionally creates a simple set of templates to get you started with your web site presentation. It creates the templates in root/ directory underneath your main project directory. In here two further subdirectories are created: root/src which contains the main page templates, and root/lib containing a library of other template components (header, footer, etc.) that the page templates use. The view module that the helper creates is automatically configured to locate these templates. Default Rendering To render a template the following process is applied: The configuration template root/lib/config/main is rendered. This is controlled by the "PRE_PROCESS" configuration variable set in the controller generated by Catalyst::Helper::View::TTsite. Additionally, templates referenced by the "PROCESS" directive will then be rendered. By default the following additional templates are set: root/lib/config/col, which defines color names and RGB their RGB values and /root/lib/config/url, which defines site wide variables available to templates. Next, the template defined by the "WRAPPER" config variable is called. The default wrapper template is located in root/lib/site/wrapper. The wrapper template passes files with ".css/.js/.txt" extensions through as text OR processes the templates defined after the "WRAPPER" directive: "site/html" and "site/layout". Based on the default value of the "WRAPPER" directive in root/lib/site/wrapper, the following templates are processed in order: o root/src/your_template.tt2 o root/lib/site/footer o root/lib/site/header o root/lib/site/layout o root/lib/site/html Finally, the rendered content is returned to the bowser. METHODS
mk_compclass Generates the component class. mk_templates Generates the templates. SEE ALSO
Catalyst, Catalyst::View::TT, Catalyst::Helper, Catalyst::Helper::View::TT AUTHOR
Andy Wardley <abw@cpan.org> LICENSE
This library is free software. You can redistribute it and/or modify it under the same terms as perl itself. NAME
[% class %] - Catalyst TTSite View SYNOPSIS
See "[% app %]" DESCRIPTION
Catalyst TTSite View. AUTHOR
[% author %] LICENSE
This library is free software. You can redistribute it and/or modify it under the same terms as Perl itself. perl v5.14.2 2011-08-02 Catalyst::Helper::View::TTSite(3pm)
All times are GMT -4. The time now is 02:19 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy