{"action":"created","issue":{"url":"https://api.github.com/repos/bvcms/bvcms/issues/81","labels_url":"https://api.github.com/repos/bvcms/bvcms/issues/81/labels{/name}","comments_url":"https://api.github.com/repos/bvcms/bvcms/issues/81/comments","events_url":"https://api.github.com/repos/bvcms/bvcms/issues/81/events","html_url":"https://github.com/bvcms/bvcms/pull/81","id":122559314,"number":81,"title":"Handlebars helpers","user":{"login":"hkouns","id":5140785,"avatar_url":"https://avatars.githubusercontent.com/u/5140785?v=3","gravatar_id":"","url":"https://api.github.com/users/hkouns","html_url":"https://github.com/hkouns","followers_url":"https://api.github.com/users/hkouns/followers","following_url":"https://api.github.com/users/hkouns/following{/other_user}","gists_url":"https://api.github.com/users/hkouns/gists{/gist_id}","starred_url":"https://api.github.com/users/hkouns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkouns/subscriptions","organizations_url":"https://api.github.com/users/hkouns/orgs","repos_url":"https://api.github.com/users/hkouns/repos","events_url":"https://api.github.com/users/hkouns/events{/privacy}","received_events_url":"https://api.github.com/users/hkouns/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-12-16T17:22:13Z","updated_at":"2015-12-17T16:57:27Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/bvcms/bvcms/pulls/81","html_url":"https://github.com/bvcms/bvcms/pull/81","diff_url":"https://github.com/bvcms/bvcms/pull/81.diff","patch_url":"https://github.com/bvcms/bvcms/pull/81.patch"},"body":"Carried over functionality of several existing Python Event routines into new Handlebars helpers  (e.g. InOrg, SundayForDate, FmtPhone, etc)\r\nAdded Optional Format feature to existing helper **FmtDate**\r\nAlso created several new Helpers  (e.g. \"Now\", \"DateOffset\", FmtAddress, etc)\r\nI added error catching where ever I could.\r\n\r\nI created a Script for Testing found [here](https://gist.github.com/hkouns/a1040d8d55391607da5e)\r\nand the results can be seen [here](https://c4265878.ssl.cf2.rackcdn.com/gsbcfamily.1512161104.HandlebarsHelpers.png)\r\n![image](https://c4265878.ssl.cf2.rackcdn.com/gsbcfamily.1512161104.HandlebarsHelpers.png)\r\n\r\n_Here is a full listing:_\r\n\r\n**IfInOrg** in the form of:\r\n  {{IfInOrg pid orgId}} {{/IfInOrg}}\r\n\r\n**IfInSubGroup** in the form of:\r\n  {{IfInSubGroup pid orgId \"subgroup\"}} {{/IfInSubGroup}}\r\nsubgroup is case sensitive\r\n\r\n**Math** helper in form of:\r\n  {{Math lval oper rval \"fmt?\"}}\r\nex. {{Math Total \"/\" 12}}\r\nfmt is optional. Uses standard/custom dotnet format strings\r\nex. {{Math Total \"/\" 12 \"C\"}}\r\n\r\n\r\n**FmtNum** helper in form of:\r\n  {{FmtNum value \"fmt\"}}\r\nex. {{FmtNum Total \"C\"}}\r\nfmt is required. Uses standard/custom dotnet format strings\r\n\r\n**FmtAddress** in the form of:\r\n  {{FmtAddress PID \"type\" lines}}\r\ntype: \"F\" for family or \"P\" for Personal or \"Primary\" for primary\r\nLines: 1, 2 or 3  - format address with <BR> codes to fit on 1, 2 or 3 lines\r\n\r\n**Now** in the form of:\r\n  {{Now \"fmt?\"}}\r\nStandard output format is M/d/YYYY\r\nfmt is optional. Uses standard/custom dotnet DateTime format strings\r\n\r\n\r\n**FmtDate** in the form of:\r\n  {{FmtDate Date \"fmt?\"}}\r\nfmt is optional. Uses standard/custom dotnet DateTime format strings\r\ndefault format is M/d/yyy\r\n\r\n**WeekNumber** in the form of:\r\n  {{WeekNumber Date}}\r\n\r\n\r\n**SundayForDate** in the form of:\r\n  {{SundayForDate Date \"fmt?\"}}\r\nfmt is optional. Uses standard/custom dotnet DateTime format strings\r\ndefault format is M/d/yyy\r\n\r\n**SundayForWeek** in the form of:\r\n  {{SundayForWeek year week \"fmt?\"}}\r\nfmt is optional. Uses standard/custom dotnet DateTime format strings\r\ndefault format is M/d/yyy\r\n\r\n\r\n**MostRecentAttendedSunday** in the form of:\r\n  {{MostRecentAttendedSunday progid \"fmt?\"}}\r\nfmt is optional. Uses standard/custom dotnet DateTime format strings\r\ndefault format is M/d/yyy\r\n\r\n\r\n**DateOffset** in the form of:\r\n  {{DateOffset date offset \"type\" \"fmt?\"}}\r\nfmt is optional. Uses standard/custom dotnet DateTime format strings\r\ndefault format is M/d/yyy\r\n\r\n**FmtPhone** helper in form of:\r\n  {{FmtPhone phone# \"prefix\"}}\r\n"},"comment":{"url":"https://api.github.com/repos/bvcms/bvcms/issues/comments/165511290","html_url":"https://github.com/bvcms/bvcms/pull/81#issuecomment-165511290","issue_url":"https://api.github.com/repos/bvcms/bvcms/issues/81","id":165511290,"user":{"login":"hkouns","id":5140785,"avatar_url":"https://avatars.githubusercontent.com/u/5140785?v=3","gravatar_id":"","url":"https://api.github.com/users/hkouns","html_url":"https://github.com/hkouns","followers_url":"https://api.github.com/users/hkouns/followers","following_url":"https://api.github.com/users/hkouns/following{/other_user}","gists_url":"https://api.github.com/users/hkouns/gists{/gist_id}","starred_url":"https://api.github.com/users/hkouns/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hkouns/subscriptions","organizations_url":"https://api.github.com/users/hkouns/orgs","repos_url":"https://api.github.com/users/hkouns/repos","events_url":"https://api.github.com/users/hkouns/events{/privacy}","received_events_url":"https://api.github.com/users/hkouns/received_events","type":"User","site_admin":false},"created_at":"2015-12-17T16:57:27Z","updated_at":"2015-12-17T16:57:27Z","body":"Agreed on both accounts... that is why I was suggesting it was a minor issue and shouldn't interfere with the pull request.\r\n\r\nActually I didn't know for sure which implementation you were using.  When I search Github for Handlebars.net and look at the primary project, I see that it is already listed as a bug.  However, he believes that the solution will be a major \"breaking change\" https://github.com/rexm/Handlebars.Net/issues/48 \r\n\r\nThanks"}}