Earlier this week I got to look at some code using CasperJS. CasperJS is a testing utility for PhantomJS, a headless (i.e. virtual) Webkit browser. This is probably unfair, but I like to think of Casper as a super powered Curl. Hopefully you know Curl as a command line tool that lets you perform network requests and work with the result. Unlike Curl, CasperJS (and PhantomJS) can actually interact with the results like a real browser. This allows for some cool testing/utilities. I've only begun to scratch the surface of the tool, but I thought I'd share an interesting little issue my coworker and I ran into with it.
Currently it isn't possible to use nested layouts in HarpJS. But with a little work you can support it easily enough. Here is a solution (with an alternative) that you can use until (if) HarpJS supports it natively in the future.
Before I start - a quick apology. I know that this particular topic has been covered before, but I'm having a heck of a time finding the article. I wanted to build a quick example for a friend anyway so I thought I'd share. In this example, I've got a HarpJS site with a list of articles. For fun I also added a main image for each article. Here is the data source.
Here are two simple recipes for a Harp.js blog. Both are built using EJS but could be ported to Jade pretty easily. As I hate Jade I will not be the person doing it. ;) First, let's look at the sample data - a set of blog entries defined in _data.json.
Next week I'll be giving a presentation on HarpJS (and the Harp platform). For folks who just so happen to be in Louisiana, the first presentation will be Tuesday night at the Acadiana Adobe User Group (details here: Meeting).
Of course, I assume most of my readership is not in the beautiful state of Louisiana, so for the rest of y'all, I'm going to make true on my promise to give Google Hangouts a try. I'll be hosting my first Hangout as a presentation so expect some bumps, but I think it will go ok. I've included a link to the details below. It will be held next Friday, February 21, at 12PM CST.
Edited Feb 14: Just an FYI, I modified the event link. If you signed up at the other one, please try this new link.
For a while now, myself (and many others) in the ColdFusion community have been urging, begging, hell, pleading with developers to stop using UI tags in ColdFusion. Things like cfgrid, cfpod, etc, are easy to use, but in general lead to far more trouble than they are worth. I said this back in October of last year:
One of my favorite tools has just hit 3.0 - Edge Animate. New features in this release include:
I spent some time today converting an older ColdFusion site to static HTML (I'll talk more about that tomorrow) and I thought I'd share some tips that may help others.
Just a quick note that I'll be speaking next week at Mobile+Web DevCon in San Francisco. This is my third time at this conference and I like it. It is a small conference, but it has a great relaxed, casual feel to it that I don't get at most conferences. I'll be speaking on Wednesday so if you are in town, come check it out.
Yesterday I recorded a video demonstrating how to use Ripple for Cordova/PhoneGap development. I even made it fancy with Premiere Pro CC (with a huge amount of help from Andy Trice). Let me know what you think and I hope this is helpful.