basic porting work for SCSite
[scpubgit/App-SCS.git] / lib / App / SCS / Plugin / Core / PagePlugin / Template.pm
index 0587b80..e0eab28 100644 (file)
@@ -49,7 +49,11 @@ sub filter_html_zoom {
                ->then
                ->replace(sub {
                    my $sel = $to_replace[0]->{attrs}{'data-replace'};
-                   $orig->collect($sel, { into => \my @replace_with })->run;
+                   my $content = $sel =~ s/^content-of:\s*//;
+                   $orig->collect($sel, {
+                     into => \my @replace_with,
+                     content => $content
+                   })->run;
                    HTML::Zoom::ArrayStream->new({ array => \@replace_with })
                  })
                ->to_stream;