Sponsored Content
The Lounge What is on Your Mind? Your site has been switched to Mobile First Indexing Post 303038677 by Neo on Wednesday 11th of September 2019 07:07:22 AM
Old 09-11-2019
TURNED OFF FOR NOW - BREAKS THINGS

OK... testing this non-default mod_pagespeed config now:

Code:
    # Explicitly enables specific filters. This is useful in
    # conjuction with ModPagespeedRewriteLevel. For instance, filters
    # not included in the CoreFilters may be enabled using this
    # directive. This directive contains a comma-separated list of
    # filter names, and can be repeated.
    #
    ModPagespeedEnableFilters rewrite_javascript,rewrite_css
    ModPagespeedEnableFilters collapse_whitespace,elide_attributes

 

8 More Discussions You Might Find Interesting

1. IP Networking

port access to site to site VPN

Setup a site to site VPN between two cisco routers. One of the site locations is unable to access ports such as https://example.com:9001 How do I let them go into port 9001? They can ssh, ftp, telnet and everything else. Is this a VPN issue or ACL access issue? I put permit ip host... (0 Replies)
Discussion started by: photon
0 Replies

2. Shell Programming and Scripting

indexing a file

hello guys, I have a file like this: input.dat Push-to-talk No Coonection IP support Support for IP telephony Yes Built-in SIP stack Yes Support via software Yes Microsoft Support for Microsoft Exchange Yes UMA (5 Replies)
Discussion started by: Johanni
5 Replies

3. 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

4. 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

5. 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

6. IP Networking

Node switched itself from static to DHCP on reboot issue

I'm trying to figure out what circumstances would cause an Open Solaris 11.2 host to switch itself from a static to a DHCP ip address upon reboot. This has only happened once but is a cause for some concern as this machine will be part of a web server pool. Nothing has changed on the LAN that... (2 Replies)
Discussion started by: SmokeyJoe
2 Replies

7. What is on Your Mind?

New UNIX.COM Mobile Site Icons

Having given up for the time being with a very difficult game engine project to virtualizing cyberspace, am working on the forums again. Just updated a few icons on the mobile site. Explanations in the picture captions: https://www.unix.com/members/1-albums214-picture855.jpeg ... (1 Reply)
Discussion started by: Neo
1 Replies

8. What is on Your Mind?

Mobile Thanks Now Visible in Mobile

Hey, I have enable post thanks (viewing thanks, not yet giving thanks) in mobile: https://www.unix.com/members/1-albums214-picture1018.jpeg I plan to also add the button to "give thanks on mobile. In addition, I will change the formatting (color and justification) of this new mobile... (1 Reply)
Discussion started by: Neo
1 Replies
Template::Filters(3)					User Contributed Perl Documentation				      Template::Filters(3)

NAME
Template::Filters - Post-processing filters for template blocks SYNOPSIS
use Template::Filters; $filters = Template::Filters->new(\%config); ($filter, $error) = $filters->fetch($name, @args, $context); if ($filter) { print &$filter("some text"); } else { print "Could not fetch $name filter: $error "; } DESCRIPTION
The "Template::Filters" module implements a provider for creating subroutines that implement the standard filters. Additional custom filters may be provided via the FILTERS configuration option. METHODS
new(\%params) Constructor method which instantiates and returns a reference to a "Template::Filters" object. A reference to a hash array of configuration items may be passed as a parameter. These are described below. my $filters = Template::Filters->new({ FILTERS => { ... }, }); my $template = Template->new({ LOAD_FILTERS => [ $filters ], }); A default "Template::Filters" module is created by the Template module if the LOAD_FILTERS option isn't specified. All configuration parameters are forwarded to the constructor. $template = Template->new({ FILTERS => { ... }, }); fetch($name, @args, $context) Called to request that a filter of a given name be provided. The name of the filter should be specified as the first parameter. This should be one of the standard filters or one specified in the FILTERS configuration hash. The second argument should be a reference to an array containing configuration parameters for the filter. This may be specified as 0, or undef where no parameters are provided. The third argument should be a reference to the current Template::Context object. The method returns a reference to a filter sub-routine on success. It may also return "(undef, STATUS_DECLINE)" to decline the request, to allow delegation onto other filter providers in the LOAD_FILTERS chain of responsibility. On error, "($error, STATUS_ERROR)" is returned where $error is an error message or Template::Exception object indicating the error that occurred. When the "TOLERANT" option is set, errors are automatically downgraded to a "STATUS_DECLINE" response. use_html_entities() This class method can be called to configure the "html_entity" filter to use the HTML::Entities module. An error will be raised if it is not installed on your system. use Template::Filters; Template::Filters->use_html_entities(); use_apache_util() This class method can be called to configure the "html_entity" filter to use the Apache::Util module. An error will be raised if it is not installed on your system. use Template::Filters; Template::Filters->use_apache_util(); CONFIGURATION OPTIONS
The following list summarises the configuration options that can be provided to the "Template::Filters" new() constructor. Please see Template::Manual::Config for further information about each option. FILTERS The FILTERS option can be used to specify custom filters which can then be used with the FILTER directive like any other. These are added to the standard filters which are available by default. $filters = Template::Filters->new({ FILTERS => { 'sfilt1' => &static_filter, 'dfilt1' => [ &dyanamic_filter_factory, 1 ], }, }); TOLERANT The TOLERANT flag can be set to indicate that the "Template::Filters" module should ignore any errors and instead return "STATUS_DECLINED". DEBUG The DEBUG option can be used to enable debugging messages for the Template::Filters module by setting it to include the "DEBUG_FILTERS" value. use Template::Constants qw( :debug ); my $template = Template->new({ DEBUG => DEBUG_FILTERS | DEBUG_PLUGINS, }); STANDARD FILTERS
Please see Template::Manual::Filters for a list of the filters provided with the Template Toolkit, complete with examples of use. AUTHOR
Andy Wardley <abw@wardley.org> <http://wardley.org/> COPYRIGHT
Copyright (C) 1996-2007 Andy Wardley. All Rights Reserved. This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself. SEE ALSO
Template::Manual::Filters, Template, Template::Context perl v5.16.3 2011-12-20 Template::Filters(3)
All times are GMT -4. The time now is 07:03 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy