pub fn register_tera_global_fns(site: &mut Site) {
    site.tera.register_function(
        "get_page",
        global_fns::GetPage::new(site.base_path.clone(), site.library.clone()),
    );
    site.tera.register_function(
        "get_section",
        global_fns::GetSection::new(site.base_path.clone(), site.library.clone()),
    );
    site.tera.register_function(
        "get_taxonomy",
        global_fns::GetTaxonomy::new(
            &site.config.default_language,
            site.taxonomies.clone(),
            site.library.clone(),
        ),
    );
}
/// Functions filled once we have parsed all the pages/sections only, so not available in shortcodes
Functions filled once we have parsed all the pages/sections only, so not available in shortcodes
Functions filled once we have parsed all the pages / sections only so not available in shortcodes
pub fn register_tera_global_fns(site: &mut Site) {
    site.tera.register_function(
        "get_page",
        global_fns::GetPage::new(site.base_path.clone(), site.library.clone()),
    );
    site.tera.register_function(
        "get_section",
        global_fns::GetSection::new(site.base_path.clone(), site.library.clone()),
    );
    site.tera.register_function(
        "get_taxonomy",
        global_fns::GetTaxonomy::new(
            &site.config.default_language,
            site.taxonomies.clone(),
            site.library.clone(),
        ),
    );
}
pub fn register_tera_global_fns ( site : & mut Site ) { site . tera . register_function ( " " , global_fns :: GetPage :: new ( site . base_path . clone ( ) , site . library . clone ( ) ) , ) ; site . tera . register_function ( " " , global_fns :: GetSection :: new ( site . base_path . clone ( ) , site . library . clone ( ) ) , ) ; site . tera . register_function ( " " , global_fns :: GetTaxonomy :: new ( & site . config . default_language , site . taxonomies . clone ( ) , site . library . clone ( ) , ) , ) ; }
Functions filled once we have parsed all the pages/sections only, so not available in shortcodes
Functions filled once we have parsed all the pages / sections only so not available in shortcodes
site
&mut Site