TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Meteor 0.8.0: Introducing the Blaze templating engine

109 点作者 avital大约 11 年前

9 条评论

sanityinc大约 11 年前
Slightly unfortunate name clash here, since there&#x27;s also a Haskell HTML templating system called Blaze: <a href="http://hackage.haskell.org/package/blaze-html" rel="nofollow">http:&#x2F;&#x2F;hackage.haskell.org&#x2F;package&#x2F;blaze-html</a>
RaphiePS大约 11 年前
Can anyone speak to the difference in approach between Blaze and React? Or are they doing essentially the same thing?<p>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&#x27;d be curious if it&#x27;s less performant.
评论 #7485324 未加载
评论 #7485237 未加载
评论 #7485290 未加载
cookrn大约 11 年前
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&#x27;m missing some of the history here re: interaction between Meteor &amp; Tilde, but I wonder if HTMLbars could have been useful in building out Blaze had it been in the works sooner?<p>[0] <a href="https://github.com/tildeio/htmlbars/blob/master/ARCHITECTURE.md" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;tildeio&#x2F;htmlbars&#x2F;blob&#x2F;master&#x2F;ARCHITECTURE...</a>
评论 #7485353 未加载
pornel大约 11 年前
They seem to be parsing the structure rather than just gluing strings, kudos for that!<p>However, the tricky case they&#x27;ve run into:<p><pre><code> &lt;template name=&quot;hello&quot;&gt; {{#if bold}} &lt;b&gt;Hello {{name}}!&lt;&#x2F;b&gt; {{else}} Hello {{name}}! {{&#x2F;if}} &lt;&#x2F;template&gt; </code></pre> has been solved in TAL:<p><pre><code> &lt;template name=&quot;hello&quot;&gt; &lt;b tal:omit-tag=&quot;not:bold&quot;&gt;Hello {{name}}!&lt;&#x2F;b&gt; &lt;&#x2F;template&gt;</code></pre>
cslarson大约 11 年前
I&#x27;ve been working on a project that uses React with Meteor. One advantage that React has is that it&#x27;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?
评论 #7487404 未加载
评论 #7486731 未加载
malokai大约 11 年前
I&#x27;ve been using Meteor since this past September. Great to see there&#x27;s only 1 more update prior to 1.0.
评论 #7485175 未加载
评论 #7491411 未加载
评论 #7485166 未加载
chm大约 11 年前
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.<p>I&#x27;m sold on JS, as to me PHP is very ugly and incomprehensible. My stack currently looks like this:<p>Node -&gt; Express+Passport+Mongoose -&gt; Bootstrap + Angular&#x2F;Polymer + D3<p>I&#x27;ve only begun my project three weeks ago, but I would have hoped to have a prototype by now. Admittedly, I&#x27;m not working on this 40hrs a week, but still. I find it very hard to understand how everything fits together.<p>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.<p>&lt;&#x2F;rant&gt;<p>[1] I did some flash, html and js about 6-7 years ago. Also learned enough php to be disgusted by it.
评论 #7485695 未加载
评论 #7485523 未加载
grigio大约 11 年前
This is a killer feature! If you are a Meteor developer &#x2F; user &#x2F; enthusiast register on the map<p><a href="http://weuse.meteor.com" rel="nofollow">http:&#x2F;&#x2F;weuse.meteor.com</a>
elsherbini大约 11 年前
jquery compatibility is huge, awesome!<p>I am a new developer. I&#x27;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&#x27;m currently trying to write a simple backbone + node app to get my head around all the things meteor does automagically.<p>Are there any plans for learning resources coming from the meteor team?
评论 #7485079 未加载
评论 #7484860 未加载
评论 #7484875 未加载