<% content_for(:head) do %> Lazy Primes <%= stylesheet_link_tag("demos/primes") %> <%= javascript_include_tag("lib/lazy.min") %> <%= javascript_include_tag("demos/primes") %> <% end %> <% content_for(:body) do %>

There is a <script> tag on this page that uses Lazy.generate to define a Lazy.GeneratedSequence that computes prime numbers. It is currently iterating over this sequence asynchronously using #async().

Pretty neat, right?

<% end %>