summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorJason <jason@socialflow.com>2013-08-27 14:01:50 +0000
committerJason <jason@socialflow.com>2013-08-27 14:01:50 +0000
commitc41829e1b87eb19d80776d422938f7fff25f3c76 (patch)
tree742d3cbcb027f8484294bfc2ba305b1a39de6f51 /lib
parent72cb31cbc57dbe60a1cd4e069569eb1fd3472006 (diff)
downloadspreadsheet-template-c41829e1b87eb19d80776d422938f7fff25f3c76.tar.gz
spreadsheet-template-c41829e1b87eb19d80776d422938f7fff25f3c76.zip
documentation for merge helper function and added a test demonstrating functionality
Diffstat (limited to 'lib')
-rw-r--r--lib/Spreadsheet/Template/Helpers/Xslate.pm1
-rw-r--r--lib/Spreadsheet/Template/Processor/Xslate.pm7
2 files changed, 8 insertions, 0 deletions
diff --git a/lib/Spreadsheet/Template/Helpers/Xslate.pm b/lib/Spreadsheet/Template/Helpers/Xslate.pm
index df99a85..d4238e9 100644
--- a/lib/Spreadsheet/Template/Helpers/Xslate.pm
+++ b/lib/Spreadsheet/Template/Helpers/Xslate.pm
@@ -76,6 +76,7 @@ sub _curry_package {
format
c
+ merge
true
false
diff --git a/lib/Spreadsheet/Template/Processor/Xslate.pm b/lib/Spreadsheet/Template/Processor/Xslate.pm
index f0a7cf9..1454e30 100644
--- a/lib/Spreadsheet/Template/Processor/Xslate.pm
+++ b/lib/Spreadsheet/Template/Processor/Xslate.pm
@@ -39,6 +39,13 @@ C<"date_time">, and C<%args> contains any other parameters (such as C<formula>,
for instance) to declare for the cell. C<$type> is optional, and if not passed,
defaults to C<"string">.
+=item merge($range, $content, $format)
+
+Returns representation of a range of cells to be merged. C<$range> is the
+Excel representation of a range of cells, ex: "A1:B10". C<$content> is the
+content to be placed in the merged cell. C<$format> is the name of a format
+declared with the C<format> helper or a hashref of format options.
+
=item true
Returns C<JSON::true>.