From d940bdd8d3a727b13afde9e3999e8df08767e09e Mon Sep 17 00:00:00 2001 From: Brian Sage Date: Wed, 27 May 2015 12:19:46 -0500 Subject: [PATCH] Update readme for 0.4.0 --- README.md | 52 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 50 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index edff8c9..5bac55f 100644 --- a/README.md +++ b/README.md @@ -41,7 +41,7 @@ Picreel doesn't do <form>s, but it does do <input> In the editor you would place the following: ```JavaScript - + ``` +### Implementation with vars + +Sailthru [Vars](http://getstarted.sailthru.com/new-for-developers-overview/email-and-user-profiles/user/#POST Mode - Optional Parameters - vars 2) may added to templates and will be submitted as event vars and profile varswhen a user subscribes. All vars submitted will be made to equal the value _1_. + +Simply add an array of vars to the template editor, as in the following example: + +```JavaScript + + +``` + +### Implementation with a custom event name + +Sailthru will accept any event name, but you will have to configure which event names have triggers in Sailthru. + +For a custom event name, add it as a string: + +```JavaScript + + +``` + _NOTE 1: Pireel's editor does not load jQuery, but we're dependent on jQuery. Therefore, be sure to wrap new APLSubscriber declaration in if(window.jQuery)_ _NOTE 2: Most new APLS attributes may be specified when creating a new object. See lib/factories/subscriber.js for what may be created as arguments_