Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
dna-engine
Advanced tools
Readme
<img src=https://dna-engine.org/graphics/dna-logo.png align=right width=160 alt=logo>
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.
Designate templates with the dna-template
class, and put the templates directly into the HTML
of your web page.
Use the element's id
to indicate the name of the template.
Enclose data fields in double tildes ~~
.
<h1>Featured Books</h1>
<section class=books>
<div id=book class=dna-template>
<h2>~~title~~</h2>
Author: <cite>~~author~~</cite>
</div>
</section>
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.
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.
<h1>Featured Books</h1>
<section class=books>
<div class=book>
<h2>The DOM</h2>
Author: <cite>Jan</cite>
</div>
</section>
Need to clone the template multiple times?
Simply pass an array of data objects into the dna.clone()
function.
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.
Check out the runScriptsConfig
section in package.json for an
interesting approach to organizing build tasks.
CLI Build Tools for package.json
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.
FAQs
An uncomplicated user interface library for cloning semantic templates
The npm package dna-engine receives a total of 1,184 weekly downloads. As such, dna-engine popularity was classified as popular.
We found that dna-engine demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.