lambda.html
Version:
Lambda.html is a TypeScript-based HTML builder framework that leverages functional programming principles to provide a declarative, composable, and extensible approach for building dynamic web interfaces. Designed for robustness and maintainability, it in
36 lines • 984 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.hx = hx;
exports.id = id;
exports.clss = clss;
function hx(endpoint, options = {}) {
var _a;
return {
method: (_a = options.method) !== null && _a !== void 0 ? _a : "get",
endpoint,
target: options.target,
trigger: options.trigger,
swap: options.swap,
replaceUrl: options.replaceUrl,
encoding: options.encoding,
validate: options.validate,
pushUrl: options.pushUrl,
vals: options.vals,
headers: options.headers,
confirm: options.confirm,
ext: options.ext,
include: options.include,
indicator: options.indicator,
params: options.params,
select: options.select,
selectOob: options.selectOob,
sync: options.sync,
};
}
function id(id) {
return `#${id}`;
}
function clss(clss) {
return `.${clss}`;
}
//# sourceMappingURL=htmx.js.map