Get started with bottlejs CDN

MIT licensed

Bottle.js: Minimal, flexible routing & request handling for web apps .

Tags:
  • di
  • dependency
  • injection
  • micro
  • angular
  • pimple

Stable version

Copied!

How to start using bottlejs CDN


<!DOCTYPE html>
<html>
<head>
  <title>Get started with bottlejs CDN - cdnhub.io</title>
  <script src="https://cdn.cdnhub.io/bottlejs/2.0.1/bottle.min.js"></script>
  <script>
    document.addEventListener('DOMContentLoaded', () => {
      const app = new Bottle();

      app.get('/', (req, res) => {
        res.view('index.html');
      });

      app.use('/templates', {
        root: 'templates/'
      });

      app.start();
    });
  </script>
</head>
<body>
  <!-- Your HTML content goes here -->
</body>
</html>
Copied!
Copied!
Copied!
Copied!

All versions