File tree Expand file tree Collapse file tree 1 file changed +27
-3
lines changed Expand file tree Collapse file tree 1 file changed +27
-3
lines changed Original file line number Diff line number Diff line change 1
- # JS in JSON Session
1
+ # [ JS in JSON] ( https://github.com/WebReflection/js-in-json#readme ) Session
2
2
3
+
4
+ ### JS
3
5
``` js
4
6
import Session from ' js-in-json-session' ;
5
7
6
- const session = new Session (js_in_json_bundle );
8
+ const session = new Session (jsonBundle );
7
9
8
10
session .add (' Module' );
9
- session .flush ();
11
+ const output = session .flush ();
12
+ ```
13
+
14
+
15
+ ### PHP
16
+ [ session.php] ( ./php/session.php )
17
+ ``` php
18
+ include(__DIR__.'/session.php');
19
+
20
+ $session = new JSinJSON\Session($jsonBundle);
21
+ $session->add('Module');
22
+ $output = $session->flush();
23
+ ```
24
+
25
+
26
+ ### Python
27
+ [ session.py] ( ./python/session.py )
28
+ ``` python
29
+ from session import Session
30
+
31
+ session = Session(jsonBundle)
32
+ session.add(' Module' )
33
+ output = session.flush()
10
34
```
You can’t perform that action at this time.
0 commit comments