Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
...
Checking mergeability… Don’t worry, you can still create the pull request.
  • 4 commits
  • 3 files changed
  • 0 commit comments
  • 3 contributors
Commits on Jul 27, 2006
@paulorrock paulorrock Added output channel name to error message in Burner::Mason b4db2e2
Commits on Aug 18, 2006
@theory theory Better notes on encoding. Turns out that, the way we've been using it is
wrong. For example, you don't actually have to convert the text to another
character set in a template filter, you can just set the "encoding" (which is
really used as a Perl I/O layer) to, e.g., 'encoding(iso-8859-2)', and it will
automagically convert it for you!

Otherwise, the only use for the endoding attribute is if you're outputting
binary data, in which case you should set it to 'raw'.
13422a3
Commits on Oct 18, 2006
@slanning slanning Fix which VERSION was being displayed in error message in inst/clone.pl ffd8141
Commits on Oct 19, 2006
@slanning slanning Reverting last change note; 1.8.11 has already been released
and 1.8.x is no longer maintained.
452e417
Showing with 13 additions and 8 deletions.
  1. +3 −2 inst/clone.pl
  2. +8 −4 lib/Bric/Util/Burner.pm
  3. +2 −2 lib/Bric/Util/Burner/Mason.pm
View
5 inst/clone.pl
@@ -120,8 +120,9 @@ sub check_version {
# make sure we're not cloning a different version
if ($INSTALL->{VERSION} ne $VERSION) {
print <<END;
-The installed version ("$VERSION") is not same as this version! "make
-clone" is only designed to work with like versions.
+The installed version ("$INSTALL->{VERSION}") is not same as this
+version ("$VERSION")! "make clone" is only designed to work with
+like versions.
END
exit 1 unless ask_yesno("Continue with clone? [no] ", 0);
@todo = ($VERSION);
View
12 lib/Bric/Util/Burner.pm
@@ -483,10 +483,14 @@ B<Notes:> NONE.
=item $b = $burner->set_encoding($encoding)
Sets the character set encoding to be used to write out the contents of a burn
-to a file under Perl 5.8.0 and later. Use this attribute if templates are
-converting output data from Bricolage's native UTF-8 encoding to another
-encoding. Use "raw" if your templates are outputting binary data. Defaults to
-"utf8".
+to a file under Perl 5.8.0 and later. This value will be used to set the IO
+layer for the file handle used for template output. For example, if you wanted
+the output to be automatically converted to iso-8859-2, set the encoding like
+so:
+
+ $burner->set_encoding('encoding(iso-8859-2)');
+
+Use "raw" if your templates are outputting binary data. Defaults to "utf8".
B<Throws:> NONE.
View
4 lib/Bric/Util/Burner/Mason.pm
@@ -281,8 +281,8 @@ sub burn_one {
)) {
# We'll handle this exception ourselves to prevent it from
# percolating back up to the UI and returning a 404.
- $err = "Mason error: ". $err->message;
- $msg = "Template '$tmpl_name' not found in path '$tmpl_path'";
+ $err = "Mason error: ". $err->message;
+ $msg = "Template '$tmpl_name' not found in path '$tmpl_path' for output channel '" . $oc->get_name . "'";
} elsif (isa_exception($err)) {
# Just dump it.
rethrow_exception($err);

No commit comments for this range

Something went wrong with that request. Please try again.