File tree 1 file changed +12
-24
lines changed 1 file changed +12
-24
lines changed Original file line number Diff line number Diff line change 1
- .. note ::
2
-
3
- This documentation is under construction, more to come soon
4
-
5
-
6
-
7
1
Static
8
2
======
9
3
10
- Serve static file from the datasource
11
-
12
4
Features
13
- ~~~~~~~~
5
+ --------
14
6
15
- - Insert here the different feature available for this plugin
7
+ - Add a handler to render static file
16
8
17
9
Configuration
18
- ~~~~~~~~~~~~~
10
+ -------------
19
11
20
- - Insert the yaml configuration for the DI
12
+ There is no configuration option. You only need to enable the plugin by adding this line into the IoC configuration file.
21
13
22
14
.. code-block :: yaml
23
15
24
- element.plugins.cache :
25
- cache_control :
26
- - { "path": "^.*\\.(txt|jpg|png|gif|xls|doc|docx)$", "Cache-Control": ['public', 's-maxage=14212800']}
27
- - { "path": "^(blog|gallery).*", "Cache-Control": ['public', 's-maxage=3600']}
28
- - { "path": "^.*\\.rss", "Cache-Control": ['public', 's-maxage=3600']}
29
- - { "path": "^contact.*", "Cache-Control": ['private', 'must-revalidate']}
30
- - { "path": "^/$", "Cache-Control": ['public', 's-maxage=3600']}
16
+ element.plugins.static :
17
+
18
+ Usage
19
+ -----
31
20
32
- Events
33
- ~~~~~~
21
+ Just place a store a file in the datasource and access it with a browser. That's it.
34
22
35
- - List event or entry points for this plugin
23
+ If the url contains the `` ?mode=preview=
36
24
37
25
Architecture
38
- ~~~~~~~~~~~~
26
+ ------------
39
27
40
- - Provide information about how the feature is implemented
28
+ The plugin provides a ``StaticNodeLoader `` to create a node object from a path, the created node type is `` element.static ``.
You can’t perform that action at this time.
0 commit comments