Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Loading…

Adding pure.js to the list? #9

Merged
merged 2 commits into from

2 participants

@pure

Hi Garran,
I've added pure.js to the list of template engines, do you mind to add it?
Cheers,

@garann
Owner

Sorry for letting this sit so long. If you remove the 'speedy' and 'parts' classes, I'll go ahead and merge it. Thanks!

@pure

I'm quite late too!
pure.js allow partials and recursive templates, what made you doubt about it?

For speedy, well... it may be slower than some raw string ones.
The speed of a web app is more about network latency than rendering time.
Comparing tens of msec of rendering compared with hundreds of latency, doesn't make a big difference.

Cheers,

@garann
Owner

Ah - I didn't see anything in the documentation about creating partial templates, but perhaps I missed it. Do you have a link? 'Speedy' isn't merely an adjective in this case - it corresponds to the question "is this one of the very fastest?" which just shows the fastest three.

@pure

A compiled template is a JS function, that can be called inside another template logic.
Here is a particular case of a template with an inner call to itself:
http://beebole.com/pure/documentation/recursion-example

line 51 the template is compiled
line 52 the rendering starts
line 46 recurse, etc... Here it could be a call to another partial template.

Ok, for dropping speedy.
It looks my explanation on why raw speed does not matter client side needs some rework to impact.

@garann
Owner

Thanks for the link. I didn't find that when I looked over the docs.

The nice thing about speediness is that, as you point out, it may or may not be a crucial factor, so folks using this tool aren't obligated to consider it. :) If you drop that I'll merge this in.

@pure

Most people come from a server rendering past where speed is a crucial factor. I was like that.
But ok. I removed it.
Thanks.

@garann garann merged commit 9f43c30 into garann:gh-pages
@garann
Owner

Merged. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Jun 11, 2012
  1. @pure

    Added pure.js to the list

    pure authored
Commits on Jan 23, 2013
  1. @pure

    Remove speedy class

    pure authored
This page is out of date. Refresh to see the latest.
Showing with 6 additions and 1 deletion.
  1. +6 −1 index.html
View
7 index.html
@@ -101,6 +101,11 @@
<a href="https://github.com/flatiron/plates">github</a>
<span>(10.811k)</span>
</div>
+ <div class="add client-side logicless compile parts dom format">
+ <h2>pure.js</h2>
+ <a href="http://beebole.com/pure">project</a>
+ <span>(11.7k)</span>
+ </div>
<div class="add client-side logicless dom format">
<h2>Transparency</h2>
<a href="http://leonidas.github.com/transparency/">project</a>
@@ -115,4 +120,4 @@
</body>
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.7.1/jquery.min.js"></script>
<script src="script.js"></script>
-</html>
+</html>
Something went wrong with that request. Please try again.