UNPKG

@sujalchoudhari/solaris-ui

Version:

A UI framework to create HTML pages with just JavaScript.

36 lines 1.34 kB
"use strict"; /** * @packageDocumentation * * Atoms * ----- * * Atom and Atomizer are the core classes of the Atoms library. * This provides a way to load components from the templates efficiently. * * ### Atomizer * Atomizer is the class that loads the templates and provides the AtomizerTemplate object. * Atomizer is responsible for preloading the templates and providing the AtomizerTemplate object. * It keeps track of which template is loaded and which is not. * * ### Atom * Atom is the class that represents a single HTML element with its properties. * The Atom is just awar version of the Mustache template. * When the toString is called, the Atom renders the template with the props. * * ### AtomizerTemplate * AtomizerTemplate is the class that represents a single template. * It is a wrapper around the Mustache template. * * @license MIT license */ var __importDefault = (this && this.__importDefault) || function (mod) { return (mod && mod.__esModule) ? mod : { "default": mod }; }; Object.defineProperty(exports, "__esModule", { value: true }); exports.Atomizer = exports.Atom = void 0; const atom_1 = __importDefault(require("./atom")); exports.Atom = atom_1.default; const atomizer_1 = __importDefault(require("./atomizer")); exports.Atomizer = atomizer_1.default; //# sourceMappingURL=index.js.map