From d0373a2dad034c910fab4c0b31bb981271ee088e Mon Sep 17 00:00:00 2001 From: Gavin Shelley Date: Sun, 10 Mar 2013 21:13:54 +0000 Subject: [PATCH] TTSchema doc fixes --- lib/SQL/Translator/Producer/TTSchema.pm | 22 ++++++++++++---------- 1 file changed, 12 insertions(+), 10 deletions(-) diff --git a/lib/SQL/Translator/Producer/TTSchema.pm b/lib/SQL/Translator/Producer/TTSchema.pm index 45bbd6d30..5885d3b06 100644 --- a/lib/SQL/Translator/Producer/TTSchema.pm +++ b/lib/SQL/Translator/Producer/TTSchema.pm @@ -18,12 +18,12 @@ SQL::Translator::Producer::TTSchema - ttfile => 'foo_template.tt', # Template file to use # Extra template variables - ttargs => { + tt_vars => { author => "Mr Foo", }, # Template config options - ttargs => { + tt_conf => { INCLUDE_PATH => '/foo/templates', }, }, @@ -34,7 +34,7 @@ SQL::Translator::Producer::TTSchema - Produces schema output using a given Template Tookit template. -It needs one additional producer_arg of C which is the file +It needs one additional producer arg of C which is the file name of the template to use. This template will be passed a variable called C, which is the C object created by the parser. You can then use it to walk the schema via the @@ -54,13 +54,15 @@ Here's a brief example of what the template could look like: See F for a more complete example. -The template will also get the set of extra variables given as a hashref via the -C producer arg. +The template will also get the set of extra variables given as a +hashref via the C producer arg. (Note that the old style of +passing this config in the C producer arg has been +deprecated). -You can set any of the options used to initiallize the Template object by -adding a tt_conf producer_arg. See Template Toolkit docs for details of +You can set any of the options used to initialize the Template object by +adding a C producer arg. See Template Toolkit docs for details of the options. -(Note that the old style of passing this config directly in the producer args +(Note that the old style of passing this config directly in the C producer args has been deprecated). @@ -68,8 +70,8 @@ has been deprecated). to => 'TT', producer_args => { ttfile => 'foo_template.tt', - ttargs => {}, - tt_conf = { + tt_vars => {}, + tt_conf => { INCLUDE_PATH => '/foo/templates/tt', INTERPOLATE => 1, }