Get started with dustjs-linkedin CDN

MIT licensed

DustJS-LinkedIn: Library for LinkedIns sharing & auth in 9 DustJS apps.

Tags:
  • template
  • templating
  • dust
  • linkedin
  • 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