UNPKG

secst

Version:

SECST is a semantic, extensible, computational, styleable tagged markup language. You can use it to joyfully create compelling, interactive documents backed by HTML.

23 lines (19 loc) 681 B
import flowContent from "./flow-content.js"; import phrasingContent from "./phrasing-content.js"; const allTags = {}; const mapTags = async (tags) => { if(tags && typeof(tags)==="object") { for(const [key,value] of Object.entries(tags)) { if(!allTags[key]) { if(typeof(value)==="function") { allTags[key] = await value.call(tags); } else { allTags[key] = value; } await mapTags(allTags[key].contentAllowed) } } } } await mapTags({...phrasingContent,...flowContent}); export {allTags, allTags as default}