|
37 | 37 | [:input {:type "text" |
38 | 38 | :id "input1" |
39 | 39 | :name "input-1" |
40 | | - :data-bind-input1 true}] |
| 40 | + :data-bind:input1 true}] |
41 | 41 |
|
42 | 42 |
|
43 | 43 | [:br] |
|
48 | 48 | ;; GET |
49 | 49 | [:div |
50 | 50 | [:h4 "GET"] |
51 | | - [:button { :data-on-click "@get('/endpoint')"} "get - no ct - no type"][:br] |
52 | | - [:button {:type "button" :data-on-click "@get('/endpoint')"} "get - no ct - type"][:br] |
53 | | - [:button { :data-on-click "@get('/endpoint', {contentType: 'form'})"} "get - ct - no type "][:br] |
54 | | - [:button {:type "button" :data-on-click "@get('/endpoint', {contentType: 'form'})"} "get - ct -type"][:br]] |
| 51 | + [:button { :data-on:click "@get('/endpoint')"} "get - no ct - no type"][:br] |
| 52 | + [:button {:type "button" :data-on:click "@get('/endpoint')"} "get - no ct - type"][:br] |
| 53 | + [:button { :data-on:click "@get('/endpoint', {contentType: 'form'})"} "get - ct - no type "][:br] |
| 54 | + [:button {:type "button" :data-on:click "@get('/endpoint', {contentType: 'form'})"} "get - ct -type"][:br]] |
55 | 55 |
|
56 | 56 | ;; POST |
57 | 57 | [:div |
58 | 58 | [:h4 "POST"] |
59 | | - [:button { :data-on-click "@post('/endpoint')"} "post - no ct - no type"][:br] |
60 | | - [:button {:type "button" :data-on-click "@post('/endpoint')"} "post - no ct - type"][:br] |
61 | | - [:button { :data-on-click "@post('/endpoint', {contentType: 'form'})"} "post - ct - no type "][:br] |
62 | | - [:button {:type "button" :data-on-click "@post('/endpoint', {contentType: 'form'})"} "post - ct -type"][:br]] |
| 59 | + [:button { :data-on:click "@post('/endpoint')"} "post - no ct - no type"][:br] |
| 60 | + [:button {:type "button" :data-on:click "@post('/endpoint')"} "post - no ct - type"][:br] |
| 61 | + [:button { :data-on:click "@post('/endpoint', {contentType: 'form'})"} "post - ct - no type "][:br] |
| 62 | + [:button {:type "button" :data-on:click "@post('/endpoint', {contentType: 'form'})"} "post - ct -type"][:br]] |
63 | 63 |
|
64 | 64 | ;; PUT |
65 | 65 | [:div |
66 | 66 | [:h4 "PUT"] |
67 | | - [:button { :data-on-click "@put('/endpoint')"} "put - no ct - no type"][:br] |
68 | | - [:button {:type "button" :data-on-click "@put('/endpoint')"} "put - no ct - type"][:br] |
69 | | - [:button { :data-on-click "@put('/endpoint', {contentType: 'form'})"} "put - ct - no type "][:br] |
70 | | - [:button {:type "button" :data-on-click "@put('/endpoint', {contentType: 'form'})"} "put - ct -type"][:br]] |
| 67 | + [:button { :data-on:click "@put('/endpoint')"} "put - no ct - no type"][:br] |
| 68 | + [:button {:type "button" :data-on:click "@put('/endpoint')"} "put - no ct - type"][:br] |
| 69 | + [:button { :data-on:click "@put('/endpoint', {contentType: 'form'})"} "put - ct - no type "][:br] |
| 70 | + [:button {:type "button" :data-on:click "@put('/endpoint', {contentType: 'form'})"} "put - ct -type"][:br]] |
71 | 71 |
|
72 | 72 | ;; PATCH |
73 | 73 | [:div |
74 | 74 | [:h4 "PATCH"] |
75 | | - [:button { :data-on-click "@patch('/endpoint')"} "patch - no ct - no type"][:br] |
76 | | - [:button {:type "button" :data-on-click "@patch('/endpoint')"} "patch - no ct - type"][:br] |
77 | | - [:button { :data-on-click "@patch('/endpoint', {contentType: 'form'})"} "patch - ct - no type "][:br] |
78 | | - [:button {:type "button" :data-on-click "@patch('/endpoint', {contentType: 'form'})"} "patch - ct -type"][:br]] |
| 75 | + [:button { :data-on:click "@patch('/endpoint')"} "patch - no ct - no type"][:br] |
| 76 | + [:button {:type "button" :data-on:click "@patch('/endpoint')"} "patch - no ct - type"][:br] |
| 77 | + [:button { :data-on:click "@patch('/endpoint', {contentType: 'form'})"} "patch - ct - no type "][:br] |
| 78 | + [:button {:type "button" :data-on:click "@patch('/endpoint', {contentType: 'form'})"} "patch - ct -type"][:br]] |
79 | 79 |
|
80 | 80 | ;; DELETE |
81 | 81 | [:div |
82 | 82 | [:h4 "DELETE"] |
83 | | - [:button { :data-on-click "@delete('/endpoint')"} "delete - no ct - no type"][:br] |
84 | | - [:button {:type "button" :data-on-click "@delete('/endpoint')"} "delete - no ct - type"][:br] |
85 | | - [:button { :data-on-click "@delete('/endpoint', {contentType: 'form'})"} "delete - ct - no type "][:br] |
86 | | - [:button {:type "button" :data-on-click "@delete('/endpoint', {contentType: 'form'})"} "delete - ct -type"][:br]]]] |
| 83 | + [:button { :data-on:click "@delete('/endpoint')"} "delete - no ct - no type"][:br] |
| 84 | + [:button {:type "button" :data-on:click "@delete('/endpoint')"} "delete - no ct - type"][:br] |
| 85 | + [:button { :data-on:click "@delete('/endpoint', {contentType: 'form'})"} "delete - ct - no type "][:br] |
| 86 | + [:button {:type "button" :data-on:click "@delete('/endpoint', {contentType: 'form'})"} "delete - ct -type"][:br]]]] |
87 | 87 | [:h3 "Outside form "] |
88 | 88 | [:button |
89 | | - {:id "get-no-form", :data-on-click "@get('/endpoint')"} |
| 89 | + {:id "get-no-form", :data-on:click "@get('/endpoint')"} |
90 | 90 | "get no form"] |
91 | 91 | [:button |
92 | | - {:id "post-no-form", :data-on-click "@post('/endpoint')"} |
| 92 | + {:id "post-no-form", :data-on:click "@post('/endpoint')"} |
93 | 93 | "post no form"] |
94 | 94 |
|
95 | 95 | [:br]]))) |
|
0 commit comments