from Hacker News

Meteor 0.8.0: Introducing the Blaze templating engine

by avital on 3/27/14, 11:34 PM with 47 comments

  • by sanityinc on 3/28/14, 9:26 AM

    Slightly unfortunate name clash here, since there's also a Haskell HTML templating system called Blaze: http://hackage.haskell.org/package/blaze-html
  • by RaphiePS on 3/28/14, 2:54 AM

    Can anyone speak to the difference in approach between Blaze and React? Or are they doing essentially the same thing?

    At first glance, this seems much better in terms of programmer productivity, given that it uses logicless templates rather than embedding HTML inside JS code. But I'd be curious if it's less performant.

  • by cookrn on 3/28/14, 3:58 AM

    I took some time to read through the architecture document[0] on HTMLbars yesterday and parts of the Blaze description sound very familiar. As a general observation, both libraries are focused on outputting DOM rather than HTML strings, which is interesting for various reasons. Maybe I'm missing some of the history here re: interaction between Meteor & Tilde, but I wonder if HTMLbars could have been useful in building out Blaze had it been in the works sooner?

    [0] https://github.com/tildeio/htmlbars/blob/master/ARCHITECTURE...

  • by pornel on 3/28/14, 1:34 PM

    They seem to be parsing the structure rather than just gluing strings, kudos for that!

    However, the tricky case they've run into:

         <template name="hello">
           {{#if bold}}
             <b>Hello {{name}}!</b>
           {{else}}
             Hello {{name}}!
           {{/if}}
         </template>     
    
    has been solved in TAL:

        <template name="hello">  
           <b tal:omit-tag="not:bold">Hello {{name}}!</b>   
        </template>
  • by cslarson on 3/28/14, 12:14 PM

    I've been working on a project that uses React with Meteor. One advantage that React has is that it's very easy to render the html on the server side. Once on the client React only updates this html if and when it needs to. Can Blaze do this? If not, are there plans to support it in the future?
  • by malokai on 3/28/14, 2:38 AM

    I've been using Meteor since this past September. Great to see there's only 1 more update prior to 1.0.
  • by chm on 3/28/14, 4:43 AM

    I want to write a web app, an SPA. After many years of not caring about web design [1], getting back into the game is very difficult, even if my programming skills are more than 10x what they were back then.

    I'm sold on JS, as to me PHP is very ugly and incomprehensible. My stack currently looks like this:

    Node -> Express+Passport+Mongoose -> Bootstrap + Angular/Polymer + D3

    I've only begun my project three weeks ago, but I would have hoped to have a prototype by now. Admittedly, I'm not working on this 40hrs a week, but still. I find it very hard to understand how everything fits together.

    And then news like this appear, once or twice a week, which make me spend some hours reading on this or that new framework and how better it performs.

    </rant>

    [1] I did some flash, html and js about 6-7 years ago. Also learned enough php to be disgusted by it.

  • by grigio on 3/28/14, 11:37 AM

    This is a killer feature! If you are a Meteor developer / user / enthusiast register on the map

    http://weuse.meteor.com

  • by elsherbini on 3/28/14, 1:50 AM

    jquery compatibility is huge, awesome!

    I am a new developer. I've used meteor for a couple toy projects, and found it really easy to get started. past the basics however, I found it really hard to get answers. I'm currently trying to write a simple backbone + node app to get my head around all the things meteor does automagically.

    Are there any plans for learning resources coming from the meteor team?