A programmerish Fargo feature

I just released Fargo 1.29 with an interesting new programmerish feature.

If you look in the Code panel for Settings, you'll see a new item for code that's run when Fargo saves a public outline.

Notes on the feature:

1. It only runs for outlines that have been given a public URL, using the Get Public Link command in the File menu.

2. You can get the URL of the outline being saved through the variable tab.publicUrl as shown in the example in the screen shot.

3. This feature would most likely be used to link Fargo to a content management system that renders the outline after it's been saved, but that's not the only possible application.

Update 10/23/13 DW

Implementing a new verb http.ping, takes one parameter the url of the server to ping.

It's much faster than the http.readUrl method, which has to use an intermediary server to make the call. http.ping can call straight from the browser without an intermediary.

One caveat, the server must use the Access-Control-Allow-Origin header on the HTTP request to allow requests from http://fargo.io/.


Posted: Mon, 21 Oct 2013 17:25:45 GMT