Go to file
Motoki Naruse 07925f938c [#1] Compatible with Python3
When this plugin is running on Python3, it shouldn't call decode because the variable is str type, not bytes.
2017-04-08 23:27:53 +09:00
__init__.py Initial commit 2015-03-13 12:59:22 +09:00
.gitignore Initial commit 2015-03-13 12:45:12 +09:00
LICENSE Initial commit 2015-03-13 12:45:12 +09:00
README.rst Initial commit 2015-03-13 12:59:22 +09:00
replacer.py [#1] Compatible with Python3 2017-04-08 23:27:53 +09:00

`Replacer <https://github.com/narusemotoki/replacer>`_
======================================================

This is plugin of Pelican. You can replace a text of a generated HTML. You can write replacing rule in your pelicanconf.py.

Example
=======

This example is replacing from '<table border="1" class="docutils">' to '<table class="table table-striped table-bordered table-hover">'.

::

    REPLACES = (
        (u'<table border="1" class="docutils">', u'<table class="table table-striped table-bordered table-hover">'),
    )