DEV Community

A Beginner's Attempt at Mithril.js

Andrew Chou on December 12, 2017

I started teaching myself web development about half a year ago, and one of the first "from scratch" front-end projects I created was a color butto...
Collapse
 
ben profile image
Ben Halpern •

@maestromac can you take a look at the {%raw%} issue here?

Collapse
 
maestromac profile image
Mac Siri •

Hey @botherchou ! if you change all the triple tildas(~) to a triple backticks(`) It will fix the raw/endraw issue!

Collapse
 
andrewchou profile image
Andrew Chou •

Just changed the blocks using the template literals to use the backticks. Left all the other ones with the tildas. Thanks!

Collapse
 
andrewchou profile image
Andrew Chou •

Ok I'll try that. I used the tildas because when I used the backticks, the markdown rendered the first two backticks as a quotations ("), so it wouldn't even create a codeblock.

Thread Thread
 
ben profile image
Ben Halpern •

Mac, let's try and make this a bit more robust so it can't cause this issue.

Collapse
 
peter profile image
Peter Kim Frank •

Great post! Appreciate that you took it step-by-step along with the snippets and CodePen embed.

Collapse
 
andrewchou profile image
Andrew Chou •

Thanks Peter! I personally like tutorials done this way, especially for smaller things

Collapse
 
alexismellamo profile image
Alexis Navarro •

The link to Mithril is not right, this is the right url mithril.js.org/

Collapse
 
andrewchou profile image
Andrew Chou •

ah thanks for the correction!

Collapse
 
sho_carter profile image
Sho Carter-Daniel •

Hey Andrew,

Are you still using Mithril? and if so, how are you finding it at the moment.

Collapse
 
andrewchou profile image
Andrew Chou •

Hi Sho! Haven't used in a while but they recently reached version 2.0, which brought in some nice changes. Still definitely suggest using it for small/medium sized projects, especially since it comes with most of what you need for projects of that size.

Collapse
 
sho_carter profile image
Sho Carter-Daniel •

Yeah course. :)
I have been using it already, but I wanted to see if your opinions have changed. It certainly seems like a framework that could be used in the long term (if that is even possible in the world of JavaScript, lol).

Thread Thread
 
andrewchou profile image
Andrew Chou •

Nah I still love it as much as I did before. It'll always have a special place in my heart – definitely in my top five favorite UI frameworks/libraries

Thread Thread
 
sho_carter profile image
Sho Carter-Daniel •

Likewise.