An uncomplicated user interface library for cloning semantic templates
npm install dna-engine
_An uncomplicated user interface library for cloning semantic templates_




dna-engine is a lightweight easy-to-use UI library enabling developers to rapidly build maintainable
JavaScript applications.
dna-template class, and put the templates directly into the HTMLid to indicate the name of the template. ~~.html
Featured Books
~~title~~
Author: ~~author~~
`Then call the
dna.clone() function to insert a copy of the template into the DOM.
The supplied JSON data object populates the fields of the template.$3
`js
dna.clone('book', { title: 'The DOM', author: 'Jan' });
`The new clone element replaces the template.
The original template is detached from the DOM and kept for additional cloning.
$3
`html
Featured Books
The DOM
Author: Jan
`Need to clone the template multiple times?
Simply pass an array of data objects into the
dna.clone() function.B) Additional Information
https://dna-engine.org (see the "Try it out"* section for an interactive example)
* Sample To-Do Application (jsfiddle)
* Introduction to dna-engine (YouTube)
* Documentation
* Release NotesC) Contributor Notes
To be a contributor, fork the project and run the commands npm install and npm test on your
local clone.
Make your edits and rerun the tests.Pull requests welcome.
Since the pacakge version number is updated during the release process, you can leave the version number unchanged.
D) Build Environment
Check out the runScriptsConfig` section in package.json for anCLI Build Tools for package.json
- 🎋 add-dist-header: _Prepend a one-line banner comment (with license notice) to distribution files_
- 📄 copy-file-util: _Copy or rename a file with optional package version number_
- 📂 copy-folder-util: _Recursively copy files from one folder to another folder_
- 🪺 recursive-exec: _Run a command on each file in a folder and its subfolders_
- 🔍 replacer-util: _Find and replace strings or template outputs in text files_
- 🔢 rev-web-assets: _Revision web asset filenames with cache busting content hash fingerprints_
- 🚆 run-scripts-util: _Organize npm package.json scripts into groups of easy to manage commands_
- 🚦 w3c-html-validator: _Check the markup validity of HTML files using the W3C validator_
---
Feel free to submit questions at:
github.com/dna-engine/dna-engine/issues
dna-engine is open source under the MIT License.
The website and documentation are published under the
CC BY-SA 4.0 license.