diff --git a/fc-solve/site/wml/lib/FreecellSolver/Site/TTRender.pm b/fc-solve/site/wml/lib/FreecellSolver/Site/TTRender.pm index d72eb5c96..f2b378096 100644 --- a/fc-solve/site/wml/lib/FreecellSolver/Site/TTRender.pm +++ b/fc-solve/site/wml/lib/FreecellSolver/Site/TTRender.pm @@ -226,11 +226,12 @@ my $template = Template->new( { COMPILE_DIR => ( $ENV{TMPDIR} // "/tmp" ) . "/shlomif-hp-tt2-cache", COMPILE_EXT => ".ttc", + ENCODING => 'utf8', INCLUDE_PATH => [ ".", "./lib", ], - PRE_PROCESS => ["lib/blocks.tt2"], POST_CHOMP => 1, + PRE_PROCESS => ["lib/blocks.tt2"], RELATIVE => 1, - ENCODING => 'utf8', + STRICT => 1, } ); @@ -380,7 +381,9 @@ EOF my $html = ''; $template->process( "src/$input_tt2_page_path.tt2", $vars, \$html, binmode => ':utf8', ) - or die $template->error(); + or die "[[" + . $template->error() + . " ; src/$input_tt2_page_path.tt2 ]]"; $toc->add_toc( \$html ); print $html; @@ -394,7 +397,9 @@ EOF my $html = ''; $template->process( "src/$input_tt2_page_path.tt2", $vars, \$html, binmode => ':utf8', ) - or die $template->error(); + or die "[[" + . $template->error() + . " ; src/$input_tt2_page_path.tt2 ]]"; $toc->add_toc( \$html ); path( @$d, @fn, )->touchpath()->spew_utf8($html); diff --git a/fc-solve/site/wml/lib/Inc/js_fc_solve.tt2 b/fc-solve/site/wml/lib/Inc/js_fc_solve.tt2 index 09b5d21bd..7783f2aa5 100644 --- a/fc-solve/site/wml/lib/Inc/js_fc_solve.tt2 +++ b/fc-solve/site/wml/lib/Inc/js_fc_solve.tt2 @@ -1,3 +1,6 @@ +[%- SET skip_solitairey = '' -%] +[%- SET skip_yui = '' -%] + [%- BLOCK set_up_requirejs -%] requirejs.config({ baseUrl: '[% base_path %]js', diff --git a/fc-solve/site/wml/lib/blocks.tt2 b/fc-solve/site/wml/lib/blocks.tt2 index 534ad9917..21cf5b85f 100644 --- a/fc-solve/site/wml/lib/blocks.tt2 +++ b/fc-solve/site/wml/lib/blocks.tt2 @@ -1,4 +1,11 @@ -[% SET html_lang = "en-US" %] +[%- SET body_params = '' -%] +[%- SET extra_h_header_contents = '' -%] +[%- SET href = '' -%] +[%- SET html_lang = "en-US" -%] +[%- SET more_keywords = '' -%] +[%- SET sect_class = '' -%] +[%- SET title = '' -%] +[%- SET xhtml1 = '' -%] [% SET desc = "Freecell Solver - a Program and a Library written in C for Solving Games of Freecell and similar Solitaire Variants" %] [% SET fcs_discuss_url = base_path _ "forums.html" %] diff --git a/fc-solve/site/wml/src/code-of-conduct/index.html.tt2 b/fc-solve/site/wml/src/code-of-conduct/index.html.tt2 index 902413678..7fd744e61 100644 --- a/fc-solve/site/wml/src/code-of-conduct/index.html.tt2 +++ b/fc-solve/site/wml/src/code-of-conduct/index.html.tt2 @@ -2,6 +2,8 @@ [%- WRAPPER wrap_html -%] +[%- SET country = 'Israel' -%] + [% BLOCK diversity_statement %]