background preloader

#haml

#haml
Related:  Explore Later

Using HAML templates in JavaScript Static Version One of my favorite libraries when I was doing ruby development was the HTML templating language HAML. For those of you who haven't yet been enlightened, it's an alternate syntax for XML that results in a lot less code to write the same thing. When I switched to primarily JavaScript, I missed HAML so much I wrote two ports of it. UPDATE This article was left as is mostly, current development resides in jade and grain. Using haml-js in a node website Using haml-js is pretty straightforward. Installing haml-js in node There wasn't a standard package manager for node when this was written, but it's not hard to install a package once you've done it a time or two. Basically I made a folder for code clones, another one for node libraries, and linked the two up so node can find the code. Checking the install To test if it's installed, open a node terminal and try to require it. Great, it's working! A simple HAML based site Layout template layout.haml !!! Start of Program step1.js <! Subpage <!

Destroy All Software Talks Useing You're Type's Good Less, dynamic stylesheet language StaticMatic CoffeeScript creationix/haml-js - GitHub API Design Webinar – Video and Slides | The Amiable API This is the recording of a webinar I presented to the OpenText R&D staff. It summarizes the material of the nine articles (totaling approximately 35 printed pages) published so far: If you had no time to read the articles, perhaps you can spare 60 minutes to watch the video. Video Recording Slides This work is licensed under a Creative Commons Attribution-ShareAlike 2.5 Canada License. Like this: Like Loading... EightShapes, LLC Ruby on Rails Tutorial: Learn Rails by Example | Ruby on Rails 3 Tutorial book and screencasts | by Michael Hartl Michael Hartl Contents Foreword My former company (CD Baby) was one of the first to loudly switch to Ruby on Rails, and then even more loudly switch back to PHP (Google me to read about the drama). This book by Michael Hartl came so highly recommended that I had to try it, and the Ruby on Rails Tutorial is what I used to switch back to Rails again. Though I’ve worked my way through many Rails books, this is the one that finally made me “get” it. The linear narrative is such a great format. Enjoy! Derek Sivers (sivers.org) Founder, CD Baby Acknowledgments The Ruby on Rails Tutorial owes a lot to my previous Rails book, RailsSpace, and hence to my coauthor Aurelius Prochazka. I’d like to acknowledge a long list of Rubyists who have taught and inspired me over the years: David Heinemeier Hansson, Yehuda Katz, Carl Lerche, Jeremy Kemper, Xavier Noria, Ryan Bates, Geoffrey Grosenbach, Peter Cooper, Matt Aimonetti, Gregg Pollack, Wayne E. About the author Copyright and license 1.1 Introduction

creationix/jquery-haml - GitHub Mastering Regular Expressions Each engine might do its work differently, but the end result is that the wheels turn. You still have to steer properly if you want to get anywhere, but that's an entirely different issue. Come to think of it, I bet that an electric engine can qualify for the standard without much change, so it's not really impacted very much -- the standard just "blesses'' the clean results that are already par for the course. Okay, so you realize that these four types of engines can be classified into three groups (the two kinds for gas, and electric in general). More than you might imagine. Both engine types have been around for a long time, but like its gasoline counterpart, the NFA type seems to be used more often. As Chapter 3 illustrated, 20 years of development with both DFAs and NFAs resulted in a lot of needless variety. POSIX standardized the workings of over 70 programs, including traditional regex-wielding tools such as awk, ed, egrep, expr, grep, lex, and sed. The parentheses in (Re:·)?

Readefine Ruby on Rails Guides

Related:  Ruby RailstemplatesCSSTemplate EngineHTML source