diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-26 00:38:13 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-26 00:38:13 -0400 |
commit | 84c905ec2011ec846d3d8b27f21f5ffd53c73840 (patch) | |
tree | a9c84e91314ea4939bc6dc46492a86784e35fef2 /IkiWiki/Plugin/typography.pm | |
parent | b74b7ab68b983b3f7d9e561eb991b21764cdb3be (diff) | |
download | ikiwiki-84c905ec2011ec846d3d8b27f21f5ffd53c73840.tar ikiwiki-84c905ec2011ec846d3d8b27f21f5ffd53c73840.tar.gz |
finish adding getsetup hooks to plugins
Diffstat (limited to 'IkiWiki/Plugin/typography.pm')
-rw-r--r-- | IkiWiki/Plugin/typography.pm | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/IkiWiki/Plugin/typography.pm b/IkiWiki/Plugin/typography.pm index fe6996898..8ae1f3445 100644 --- a/IkiWiki/Plugin/typography.pm +++ b/IkiWiki/Plugin/typography.pm @@ -8,6 +8,7 @@ use IkiWiki 2.00; sub import { #{{{ hook(type => "getopt", id => "typography", call => \&getopt); + hook(type => "getsetup", id => "typography", call => \&getsetup); IkiWiki::hook(type => "sanitize", id => "typography", call => \&sanitize); } # }}} @@ -18,6 +19,21 @@ sub getopt () { #{{{ GetOptions("typographyattributes=s" => \$config{typographyattributes}); } #}}} +sub getsetup () { #{{{ + eval q{use Text::Typography}; + error($@) if $@; + + return + typographyattributes => { + type => "string", + default => "3", + example => "tag", + description => "Text::Typography attributes value", + safe => 1, + rebuild => 1, + }, +} #}}} + sub sanitize (@) { #{{{ my %params=@_; |