align-toparrow-leftarrow-rightbackbellblockcalendarcamerachatcheckchevron-downchevron-leftchevron-rightchevron-small-downchevron-small-leftchevron-small-rightchevron-small-upchevron-upcircle-with-crosscrosseditfacebookglobegoogleimagesinstagramlocation-pinmagnifying-glassmailmoremuplabelShape 3 + Rectangle 1outlookpersonplusImported LayersImported LayersImported Layersshieldstartwitteryahoo

"Control Your Templates" and Package Show and Tell

You must register with your full name on the day before the meetup, at the latest. Otherwise, you won't be able to get past security.

Head to the third floor and follow the signs. We're in a new room with more space!

Control Your Templates! by Sean McCullough

The view engine built into Express.js 2.x followed a similar pattern as Rails and Sinatra with Layouts, templates, and partials. But why do we need those fine-grained distinctions? After all, they're all templates.

Express 3.0 moves away from this distinction and allows the template library to set it's own template hierarchy, but you can roll your own view system in Express.js 2.x now which will free you up to control how your templates are loaded, how to structure data passed to your templates, and opens up some cool possibilities for easily sharing templates between the client and the server.

We will also discuss the view model/decorator pattern for keeping logic out of your templates, how CoffeeScript executable class bodies can be used as a very flexible include pattern, and how a simple template structure can improve your app's overall page load performance for high-latency service calls.

Package Show and Tell

If you want to present a package, just let us know!

Chris Powers: air-drop

Myles Byrne: emport

Myles Byrnereload-browser

Sean Massa: bond

Jacob Gable: errorface


6:00 - 6:30: Beer and Networking

6:30 - 7:30: "Control Your Templates" by Sean McCullough

7:30 - 8:30: Package Show and Tell

Join or login to comment.

  • Robert_K

    Would love to get in on this, but I missed the RSVP deadline. Looks like Interesting front-end frameworks. I'll check back in 5pm hour if there's a way I can attend

    October 16, 2012

    • Sean M.

      I need your full name. Either post it here or email me at [masked].

      October 16, 2012

  • Sean M.

    Does anyone want to see a specific package? I'll learn and present any of them.

    October 9, 2012

    • James G.

      @Sean, oh right, but I'm referring to his actual dev environment he's presenting with. He also is using vim recording or something for the presentation, which is awesome.

      October 12, 2012

    • Sean M.

      Ah that! It was a bunch of premade files in the format 01.js, 02.js, ... Then, you can open them with `vim *.js` and use `:n` to go forward and `:N` to go backwards. It's native vim, I believe. I used it for a presentation after seeing him do it. Pretty cool way to go about it.

      1 · October 12, 2012

  • A former member
    A former member

    I recently put together a piece of express middleware that shows fancy debug error messages; I'd be interested in presenting on it; I can cover usage and the development process I use for putting together npm modules if there is time.

    1 · October 12, 2012

    • Sean M.

      Awesome! I'll add you to the list.

      October 12, 2012

  • Chris B.

    If you're up for any package I've been interested in Winston (

    October 9, 2012

    • Sean M.

      Yeah, sure. I've talked about Winston before. So, that shouldn't be too tough.

      October 9, 2012

  • Eliseo A.

    I don't even know what packages are available. Are these the ones?

    October 9, 2012

40 went

People in this
Meetup are also in:

Sign up

Meetup members, Log in

By clicking "Sign up" or "Sign up using Facebook", you confirm that you accept our Terms of Service & Privacy Policy