Skip to content

Commit

Permalink
Merge pull request #57 from conradbeach/ckb/fix-typo
Browse files Browse the repository at this point in the history
Fix typo in origin story.
  • Loading branch information
javan committed Jan 11, 2018
2 parents de381fa + c7b47f7 commit 1522e46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ORIGIN.md
Expand Up @@ -45,7 +45,7 @@ It’s designed to read as a progressive enhancement when you look at the HTML i

You can read that and have a pretty good idea of what’s going on. Even without knowing anything about Stimulus or looking at the controller code itself. It’s almost like pseudocode. That’s very different from reading a slice of HTML that has an external JavaScript file apply event handlers to it. It also maintains the separation of concerns that has been lost in many contemporary JavaScript frameworks.

As you can see, Stimulus doesn’t bother itself with creating the HTML. Rather, it attaches itself to an existing HTML document. The HTML is, in the majority of cases, rendered on the server on either on the page load (first hit or via Turbolinks) or via an Ajax request that changes the DOM.
As you can see, Stimulus doesn’t bother itself with creating the HTML. Rather, it attaches itself to an existing HTML document. The HTML is, in the majority of cases, rendered on the server either on the page load (first hit or via Turbolinks) or via an Ajax request that changes the DOM.

Stimulus is concerned with manipulating this existing HTML document. Sometimes that means adding a CSS class that hides an element or animates it or highlights it. Sometimes it means rearranging elements in groupings. Sometimes it means manipulating the content of an element, like when we transform UTC times that can be cached into local times that can be displayed.

Expand Down

0 comments on commit 1522e46

Please sign in to comment.