Volt: Assets, Components, and Routes

Originally published at: http://www.sitepoint.com/volt-assets-components-routes/

Volt is an awesome new Ruby web framework that aims to reduce the barrier between the client and server (a bit like Meteor, but in Ruby). Last time around, we uncovered some of the basics of Volt. You can check out the code right here. Here, we’ll build on the bookmarking app and go through asset management, components and routing, the Volt way. Even if you haven’t read the last article in its entirety, it should be easy to catch on.

Let’s start off with the simple bookmarking page we built last time with Volt. Here’s what it looks like right now:

That doesn’t really appeal to my eyes and it’s a bit hard to use. To make it look a bit better, we should be able to link in some CSS.


Volt’s asset management is a bit primitive and the terse-at-best documentation page on the topic notes that “asset management is still early, and likely will change quite a bit.” Fortunately, we can still do the basic stuff we need to, e.g. add some CSS. Before we get to that, let’s change the markup so styling the page is a bit easier.

Continue reading this article on SitePoint

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.