if ( $r ) exit( $r );
}
+/**
+ * Render PHP or other types of files using Mustache templates.
+ *
+ * IMPORTANT: Automatic HTML escaping is disabled!
+ */
function mustache_render( $template_name, $data ) {
if ( ! file_exists( $template_name ) )
$template_name = WP_CLI_ROOT . "/templates/$template_name";
$template = file_get_contents( $template_name );
- $m = new \Mustache_Engine;
+ $m = new \Mustache_Engine( array(
+ 'escape' => function ( $val ) { return $val; }
+ ) );
return $m->render( $template, $data );
}
* You can generate these using the {@link https://api.wordpress.org/secret-key/1.1/salt/ WordPress.org secret-key service}
* You can change these at any point in time to invalidate all existing cookies. This will force all users to have to log in again.
*/
-{{{keys-and-salts}}}
+{{keys-and-salts}}
/**#@-*/
{{/keys-and-salts}}
*/
define('WPLANG', '{{locale}}');
-{{{extra-php}}}
+{{extra-php}}
/* That's all, stop editing! Happy blogging. */