George S. Baugh 3 년 전
부모
커밋
5554875e9f
1개의 변경된 파일3개의 추가작업 그리고 1개의 파일을 삭제
  1. 3 1
      lib/Trog/Routes/HTML.pm

+ 3 - 1
lib/Trog/Routes/HTML.pm

@@ -1235,7 +1235,9 @@ sub themed_render ($template, $data) {
     );
     state $child_renderer = sub {
         my ($template_string, $options) = @_;
-        return $child_processor->render_string($template_string,$options);
+        # If it fails to render, it must be something else
+        my $out = eval { $child_processor->render_string($template_string,$options) };
+        return $out ? $out : $template_string;
     };
 
     state $processor = Text::Xslate->new(