Security News
The Push to Ban Ransom Payments Is Gaining Momentum
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
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>
<div id=book class=dna-template>
<h2>~~title~~</h2>
Author: <cite>~~author~~</cite>
</div>
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>
<div class=book>
<h2>The DOM</h2>
Author: <cite>Jan</cite>
</div>
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.
Check out the runScriptsConfig
section in package.json for an
interesting approach to organizing build tasks.
CLI Build Tools
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
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
Ransomware costs victims an estimated $30 billion per year and has gotten so out of control that global support for banning payments is gaining momentum.
Application Security
New SEC disclosure rules aim to enforce timely cyber incident reporting, but fear of job loss and inadequate resources lead to significant underreporting.
Security News
The Python Software Foundation has secured a 5-year sponsorship from Fastly that supports PSF's activities and events, most notably the security and reliability of the Python Package Index (PyPI).