
import { handlebars, handlebarsSync } from "@opengis/fastify-table/utils.js";

import token from "./core/token.js";
import descriptionList from "./list/descriptionList.js";
import tableList from "./list/tableList.js";
import buttonHelper from "./core/buttonHelper.js";
import buttonFilePreview from "./core/buttonFilePreview.js";
import select from "./core/select.js";
import badge from "./core/badge.js";
import coalesce from "./core/coalesce.js";
import mdToHTML from "./utils/mdToHTML.js";


import ifCond from "./temp/ifCond.js";
import contentList from "./temp/contentList.js";
import paddingNumber from './utils/paddingNumber.js';



export default async function route() {

    handlebars.registerHelper('token', token);
    handlebars.registerHelper('mdToHTML', mdToHTML);
    handlebars.registerHelper('descriptionList', descriptionList);
    handlebars.registerHelper('tableList', tableList);
    handlebars.registerHelper('button', buttonHelper);
    handlebars.registerHelper('buttonFilePreview', buttonFilePreview);
    handlebarsSync.registerHelper('buttonFilePreview', buttonFilePreview);
    handlebars.registerHelper('select', select);
    handlebars.registerHelper('badge', badge);
    handlebars.registerHelper('contentList', contentList);
    handlebarsSync.registerHelper('ifCond', ifCond);
    handlebarsSync.registerHelper('button', buttonHelper);
    handlebars.registerHelper('ifCond', ifCond);
    handlebars.registerHelper('empty', () => { });
    handlebarsSync.registerHelper('empty', () => { });
    handlebars.registerHelper('coalesce', coalesce);
    handlebarsSync.registerHelper('coalesce', coalesce);

    handlebarsSync.registerHelper('paddingNumber', paddingNumber);
    handlebars.registerHelper('paddingNumber', paddingNumber);
}
