public static function hashInlineFileName($template_file, $block_index)
    {
        // Work around path inconsistencies on Windows/XAMPP.
        if (DIRECTORY_SEPARATOR === '\\') {
            $template_file = str_replace('\\', '/', $template_file);
        }

        return md5($template_file . $block_index);
    }