perl-Plack-Middleware-BasicStyle - Add a basic <style> element to pages that don't have one

Property Value
Distribution ALT Linux Sisyphus
Repository Autoimports noarch
Package name perl-Plack-Middleware-BasicStyle
Package version 0.001001
Package release alt1
Package architecture noarch
Package type rpm
Installed size 7.54 KB
Download size 7.54 KB
Official Mirror
Plack::Middleware::BasicStyle is a Plack middleware that adds a basic
<style> element to HTML pages that do not have a stylesheet.
The default style, taken from, is (before minification):
body {
margin:40px auto;
max-width: 650px;
line-height: 1.6;
padding:0 10px
h1,h2,h3 {
The middleware takes the following arguments:
=item style
This is the HTML fragment that will be added to unstyled pages.
It defaults to the value of
=item any_content_type
If true, don't check whether Content-Type contains `text/html'.
If false (default), passes the response through unchanged if the
Content-Type header is unset or does not contain the case-insensitive
substring `text/html'.
=item even_if_styled
If true, don't check whether the response already includes a <style>
or <link ... rel="stylesheet"> element.
If false (default), passes the response through unchanged if the
response includes a <style> or <link ... rel="stylesheet"> element.
=item use_link_header
If false or unset (default), the given HTML fragment will be added
right after the <head> start tag (if this exists), right after the
<html> start tag (if this exists but <head> doesn't), or at the
beginning of the document (if neither <html> nor <head> exists).
If set, its value is interpreted as an URL path. The body of the
response will not be modified, instead a `Link:' HTTP header will be
added to unstyled pages. Additionally, the middleware will intercept
requests to that exact URL path and return the style (with status 200,
a Content-Type of `text/css', a correct Content-Length header, and a
Cache-Control header instructing the browser to cache the style for 30
Setting this makes the module more resilient to bugs and more
efficient at the cost of asking the client to make an extra request.
Therefore setting this argument ...


Package Version Architecture Repository
perl-Plack-Middleware-BasicStyle - - -


Name Value
/usr/share/perl5 -
perl(HTML/ -
perl(Plack/ -
perl(Plack/ -
perl(Plack/ -
perl(Plack/Util/ -
perl( -
perl-base >= 1:5.14.0
rpmlib(PayloadIsLzma) -


Name Value
perl(Plack/Middleware/ = 0.001.001
perl-Plack-Middleware-BasicStyle = 0.001001-alt1


Type URL
Binary Package perl-Plack-Middleware-BasicStyle-0.001001-alt1.noarch.rpm
Source Package perl-Plack-Middleware-BasicStyle-0.001001-alt1.src.rpm

Install Howto

  1. Add the following line to /etc/apt/sources.list:
    rpm [Sisyphus] noarch autoimports
    rpm [Sisyphus] noarch autoimports
  2. Update the package index:
    # sudo apt-get update
  3. Install perl-Plack-Middleware-BasicStyle rpm package:
    # sudo apt-get install perl-Plack-Middleware-BasicStyle



See Also

Package Description
perl-Plack-Middleware-BetterStackTrace-0.02-alt1.noarch.rpm Displays better stack trace when your app dies
perl-Plack-Middleware-BlockHeaderInjection-0.1.1-alt1.noarch.rpm block header injections in responses
perl-Plack-Middleware-Bootstrap-0.08-alt1.noarch.rpm A Plack Middleware to prettify simple HTML with Bootstrap design template
perl-Plack-Middleware-BotDetector-1.20170315.1614-alt1.noarch.rpm Plack middleware to identify bots and spiders
perl-Plack-Middleware-BrowserDetector-0.04-alt1.noarch.rpm Plack middleware to identify browsers
perl-Plack-Middleware-CSRFBlock-0.10-alt1.noarch.rpm Block CSRF Attacks with minimal changes to your app
perl-Plack-Middleware-CSS-Compressor-0.01-alt1.noarch.rpm Plack middleware to compress stylesheets
perl-Plack-Middleware-Cache-0.19-alt1.noarch.rpm Use Cached Responses of Certain URIs
perl-Plack-Middleware-Cache-CHI-0.102-alt1.noarch.rpm Caching Reverse Proxy for Plack
perl-Plack-Middleware-Cached-0.15-alt2_6.noarch.rpm No summary found
perl-Plack-Middleware-Camelcadedb-0.03-alt1.noarch.rpm interactive debugging for Plack applications
perl-Plack-Middleware-Cerberus-0.04-alt1.noarch.rpm Include geo, time zone, user-agent and throttling from App::Cerberus
perl-Plack-Middleware-ChromeFrame-0.02-alt1.noarch.rpm injects Google Chrome Frame into IE
perl-Plack-Middleware-ChromeLogger-0.01-alt1.noarch.rpm The Chrome Logger Middleware for Plack
perl-Plack-Middleware-Class-Refresh-0.01-alt1.noarch.rpm Refresh your app classes with Class::Refresh before requests