]> git.wincent.com - wikitext.git/commit
Split String#wikitext_preprocess into a separate file
authorWincent Colaiuta <win@wincent.com>
Sat, 12 Jun 2010 16:08:10 +0000 (18:08 +0200)
committerWincent Colaiuta <win@wincent.com>
Sat, 12 Jun 2010 16:08:10 +0000 (18:08 +0200)
commit257edc53369859bff6308b5feab88c20198db53e
tree3e143dc74425394de56419f0f159f245b762a05f
parent509d9e3252b0c5030e512ffbd6f519bd9cfb3cbf
Split String#wikitext_preprocess into a separate file

This has always been a bit of a wart, the fact that what is essentially
an application-specific preprocessing pass was included in our
"wikitext/strings" file.

Now, if you want the behavior you have to explicitly require
'wikitext/preprocess'.

As a side effect of this change, the file now serves as a nice example
of how to implement a custom preprocessing phase if you need it.

Signed-off-by: Wincent Colaiuta <win@wincent.com>
lib/wikitext/preprocess.rb [new file with mode: 0644]
lib/wikitext/string.rb