Commits

Shlomi Fish committed 108582f

Extract a method.

  • Participants
  • Parent commits c22d12b

Comments (0)

Files changed (1)

modules/App-XML-DocBook-Docmake/lib/App/XML/DocBook/Docmake.pm

     return ("-o", $self->_output_cmd_comp());
 }
 
+sub _calc_template_string_params
+{
+    my ($self) = @_;
+
+    return [map { ("--stringparam", @$_ ) } @{$self->_xslt_stringparams()}];
+}
+
 sub _run_xslt
 {
     my $self = shift;
             [
                 "xsltproc",
                 $self->_on_output('_calc_template_o_flag', $args),
-                (map { ("--stringparam", @$_ ) } @{$self->_xslt_stringparams()}),
+                @{$self->_calc_template_string_params()},
                 @base_path_params,
                 @stylesheet_params,
                 $self->_input_cmd_comp(),