alexbain/lirc_web — pull request #1 by joe-forbes (2013-11-23 19:02:15+00:00)
Title: Fixed bug relating to commands with slashes in the names

I discovered this bug working with one of the lircd.conf files available on sourceforge (specifically this file, which works for my receiver: http://lirc.sourceforge.net/remotes/yamaha/RAV302).

You can see my changes by looking at the code, so I won't go into detail about them. If there's a better way to add assertions regarding the hrefs for the buttons, let me know and I can tweak the lirc_web.js test file.

I'm using Nodeclipse, so you will probably want to leave out the .project and the .settings files. Sorry if it's poor form to add these to the fork - this is my first pull request.

FYI, I'm working on a native Android app and have created a separate express server Node project that serves up only JSON. If you're interested in having a pure JSON API in lirc_web, I can look at adding Accept Header handling to allow the get method to return either the rendered template or the raw JSON.