Get started with dustjs-linkedin CDN
MIT licensed
DustJS-LinkedIn: Library for LinkedIns sharing & auth in 9 DustJS apps.
Tags:- template
- templating
- dust
- asynchronous
Stable version
Copied!
How to start using dustjs-linkedin CDN
<!DOCTYPE html>
<html>
<head>
<title>Get started with dustjs-linkedin CDN - cdnhub.io</title>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/dust.min.js"></script>
<script src="https://cdn.cdnhub.io/dustjs-linkedin/3.0.1/dust-core.min.js"></script>
<script>
// Define your Dust template
const template = dust.compile(`
<div>
<h1>Hello, {{ name }}!</h1>
<p>LinkedIn ID: {{ linkedinId }}</p>
</div>
`, document.createElement('template'));
// Render the template with data
const rendered = template(
{ name: 'John Doe', linkedinId: '[email protected]' }
);
// Append the rendered HTML to the body
document.body.insertAdjacentHTML('beforeend', rendered);
</script>
</head>
<body></body>
</html>
Copied!
Copied!
Copied!
Copied!
All versions
0.4.0
0.6.0
1.0.0
1.1.0
1.1.1
1.2.0
1.2.1
1.2.2
1.2.3
1.2.4
1.2.5
1.2.6
2.0.0
2.0.1
2.0.2
2.0.3
2.1.0
2.1.1
2.1.2
2.1.3
2.1.4
2.1.5
2.2.0
2.2.10
2.2.2
2.2.3
2.2.4
2.2.5
2.2.7
2.2.8
2.2.9
2.3.0
2.3.1
2.3.2
2.3.3
2.3.4
2.3.5
2.3.6
2.4.0
2.4.1
2.4.2
2.5.0
2.5.1
2.6.0
2.6.1
2.6.2
2.6.3
2.7.0
2.7.1
2.7.2
2.7.3
2.7.4
2.7.5
3.0.0
*** 3.0.1