diff --git a/archive/v0.1.13/auto-redrawing.html b/archive/v0.1.13/auto-redrawing.html index c6c2bafb..f62f97d4 100644 --- a/archive/v0.1.13/auto-redrawing.html +++ b/archive/v0.1.13/auto-redrawing.html @@ -2,7 +2,6 @@ Mithril - diff --git a/archive/v0.1.13/change-log.html b/archive/v0.1.13/change-log.html index affec073..341be9b5 100644 --- a/archive/v0.1.13/change-log.html +++ b/archive/v0.1.13/change-log.html @@ -2,7 +2,6 @@ Mithril - diff --git a/archive/v0.1.13/community.html b/archive/v0.1.13/community.html index 032a5230..534e0c74 100644 --- a/archive/v0.1.13/community.html +++ b/archive/v0.1.13/community.html @@ -2,7 +2,6 @@ Mithril - @@ -45,9 +44,6 @@

Community

-

Projects and Snippets

-

A collection of projects and snippets created by Mithril users. A great place to find useful tools.

-

Go to the Mithril wiki

Blog

Read Mithril tutorials and articles about web app development. Join the discussion!

Go to the Mithril Blog

@@ -56,6 +52,10 @@

Got questions about Mithril? Suggestions?

Feel free to post on the mailing list


+

Projects and Snippets

+

A collection of projects and snippets created by Mithril users. A great place to find useful tools.

+

Go to the Mithril wiki

+

Bug Tracker

You can file bugs in the issues page on Github

diff --git a/archive/v0.1.13/comparison.html b/archive/v0.1.13/comparison.html index a8097a5f..8cffa47a 100644 --- a/archive/v0.1.13/comparison.html +++ b/archive/v0.1.13/comparison.html @@ -2,7 +2,6 @@ Mithril - diff --git a/archive/v0.1.13/compiling-templates.html b/archive/v0.1.13/compiling-templates.html index 98daf870..d4747b48 100644 --- a/archive/v0.1.13/compiling-templates.html +++ b/archive/v0.1.13/compiling-templates.html @@ -2,7 +2,6 @@ Mithril - diff --git a/archive/v0.1.13/components.html b/archive/v0.1.13/components.html index 210f4d98..1efc655d 100644 --- a/archive/v0.1.13/components.html +++ b/archive/v0.1.13/components.html @@ -2,7 +2,6 @@ Mithril - diff --git a/archive/v0.1.13/getting-started.html b/archive/v0.1.13/getting-started.html index 7ee950da..b72ad87f 100644 --- a/archive/v0.1.13/getting-started.html +++ b/archive/v0.1.13/getting-started.html @@ -2,7 +2,6 @@ Mithril - diff --git a/archive/v0.1.13/how-to-read-signatures.html b/archive/v0.1.13/how-to-read-signatures.html index 121c54c6..7b94344f 100644 --- a/archive/v0.1.13/how-to-read-signatures.html +++ b/archive/v0.1.13/how-to-read-signatures.html @@ -2,7 +2,6 @@ Mithril - diff --git a/archive/v0.1.13/index.html b/archive/v0.1.13/index.html index b2e0d871..cc08603f 100644 --- a/archive/v0.1.13/index.html +++ b/archive/v0.1.13/index.html @@ -2,7 +2,6 @@ Mithril - @@ -40,6 +39,10 @@
+
+

What is Mithril?

+

Mithril is a client-side MVC framework - a tool to organize code in a way that is easy to think about and to maintain.

+

Light-weight

@@ -83,13 +86,20 @@ app.PageList = function() { //controller app.controller = function() { this.pages = app.PageList(); + + this.rotate = function() { + this.pages.push(this.pages.shift()) + }.bind(this) }; //view app.view = function(ctrl) { - return ctrl.pages().map(function(page) { - return m("a", {href: page.url}, page.title); - }); + return [ + ctrl.pages().map(function(page) { + return m("a", {href: page.url}, page.title); + }), + m("a", {onclick: ctrl.rotate}, "Rotate links") + ]; }; //initialize @@ -99,10 +109,6 @@ m.module(document.getElementById("example"), app);

Output

- +
+
+
+

Want to hear more?

+

Subscribe to the Mithril blog. It's updated weekly with articles about how to use Mithril (and Javascript in general) to their full potential.

+

There's also a mailing list, where you can post questions and discuss Mithril related topics.

+
+
+
+