# subdom **Repository Path**: mirrors_regular/subdom ## Basic Information - **Project Name**: subdom - **Description**: subdom component. wraps component/dom to isolate a sub dom, sort of chroot. Useful for widgets. - **Primary Language**: Unknown - **License**: Not specified - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2020-09-25 - **Last Updated**: 2026-05-10 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # subdom wraps component/dom to isolate a sub branch of the dom, sort of chroot. Useful for widgets ## Installation $ component install regular/subdom ## API This HTML contains two sub doms named `foo` and `bar`

title goes here

title goes here

A widget-like component can now create an instance of component/dom that will only access elements of the named subdom. mySubDom = require("subdom")("foo"); mySubDom(function(dom) { dom("h1").html("Foo title"); // only changes h1 in scope 'foo' }); ## License MIT