jedfoster / SassMeister

The Sass playground
http://sassmeister.com
198 stars 25 forks source link

Convert ERB to static HTML #48

Closed jedfoster closed 10 years ago

jedfoster commented 11 years ago

There's really no reason to render anything dynamically at the view level. All the views should be static HTML. Consider Middle Man.

For the plugin lists, it might be enough to just make the bundle:update rake task write the plugins directly to the necessary views.

GitHub auth status can be handled with JS, no need for ERB conditionals.

jedfoster commented 10 years ago

Replaced the dynamic, run-time generation of the extension lists in about.erb and shared/_sass_input.erb with a Thor action in rake bundle:update. No need for those lists to be built dynamically for every, single request. This eliminates at least a little bit of server-side parsing.

Still need to look into moving the GitHub auth status to JS.