Skip to content
Browse files

tweakings

  • Loading branch information...
1 parent 3295930 commit e7ed83f1ae314164edc7bc6e40f9b2e9d7d24bb9 @yanick committed Apr 17, 2012
Showing with 6 additions and 4 deletions.
  1. +3 −3 examples/lib/SnipMate/Snippets.pm
  2. +2 −0 examples/snipmate_cheatsheet.pl
  3. +1 −1 lib/Template/Caribou/Tags/HTML.pm
View
6 examples/lib/SnipMate/Snippets.pm
@@ -12,6 +12,7 @@ use Moose;
use MooseX::Types::Path::Class;
use Template::Caribou::Utils;
+
use Template::Caribou::Tags::HTML qw/ :all /;
use Template::Caribou::Tags
@@ -38,9 +39,7 @@ has snippets => (
);
-sub _build_snippets {
- my $self = shift;
-
+method _build_snippets {
my @lines = $self->snippet_file->slurp;
my @all_snippets;
@@ -110,6 +109,7 @@ template snippet => method ( $label, $comment, $code ) {
};
div_code sub {
my $regex = qr#(\$\{\d+.*?\})#;
+
for ( split $regex, $code ) {
if ( /$regex/ ) {
span_placeholder { $_ };
View
2 examples/snipmate_cheatsheet.pl
@@ -1,5 +1,7 @@
#!/usr/bin/env perl
+use 5.10.0;
+
use SnipMate::Snippets;
say SnipMate::Snippets->new( snippet_file => shift )->render('webpage');
View
2 lib/Template/Caribou/Tags/HTML.pm
@@ -8,7 +8,7 @@ use Template::Caribou::Utils;
BEGIN {
@Template::Caribou::Tags::HTML::TAGS = qw/
p html head h1 h2 h3 h4 h5 h6 body emphasis div
- style title span li ol ul
+ style title span li ol ul i b bold a
/;
}

0 comments on commit e7ed83f

Please sign in to comment.
Something went wrong with that request. Please try again.