Skip to content
Multi Page Application (MPA) with pre-rendered HTML using Stimulus.js UMD
JavaScript HTML CSS HCL
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github
css
html
js
.gitignore
LICENSE
README.md
index.html

README.md

Stimulus.js Demo

Stimulus (by Basecamp) is a modest JavaScript framework for the HTML you already have.

This demo was made to show Stimulus-based controllers, actions and targets. As a proof of concept it implements a rough controller which places server-side rendered markup into DOM. Think of Stimulus without the need of Turbolinks. As a result this demo feels like a single-page application (SPA) even though it is in fact kind of a multi page application (MPA).

Hope it's useful!

Demo

https://stimulusjs.demo.tebe.ch

Usage

Run the demo by starting your favorite webserver in your project folder.

# Start the built-in PHP server
$ php -S localhost:9999

Then, open http://localhost:9999 in your browser.

You can’t perform that action at this time.