File tree 3 files changed +26
-0
lines changed
3 files changed +26
-0
lines changed Original file line number Diff line number Diff line change @@ -63,6 +63,16 @@ The ``autoprefixer`` (and many other tools) need to know what browsers you want
63
63
support. The best-practice is to configure this directly in your ``package.json ``
64
64
(so that all the tools can read this):
65
65
66
+ .. code-block :: diff
67
+
68
+ {
69
+ + "browserslist": [
70
+ + "defaults"
71
+ + ]
72
+ }
73
+
74
+ The ``defaults `` option is reccommended for most users and would be equivilant to the following browserslist.
75
+
66
76
.. code-block :: diff
67
77
68
78
{
Original file line number Diff line number Diff line change @@ -82,4 +82,16 @@ Or you can also specify a string to display as the default content:
82
82
83
83
{{ render_hinclude(controller('...'), {default: 'Loading...'}) }}
84
84
85
+ Use the ``attributes `` option to define the value of hinclude.js options:
86
+
87
+ .. code-block :: twig
88
+
89
+ {# by default, cross-site requests don't use credentials such as cookies, authorization
90
+ headers or TLS client certificates; set this option to 'true' to use them #}
91
+ {{ render_hinclude(controller('...'), {attributes: {data-with-credentials: 'true'}}) }}
92
+
93
+ {# by default, the JavaScript code included in the loaded contents is not run;
94
+ set this option to 'true' to run that JavaScript code #}
95
+ {{ render_hinclude(controller('...'), {attributes: {evaljs: 'true'}}) }}
96
+
85
97
.. _`hinclude.js` : http://mnot.github.io/hinclude/
Original file line number Diff line number Diff line change @@ -96,6 +96,8 @@ typical usage of this is gender:
96
96
.. code-block :: yaml
97
97
98
98
# translations/messages+intl-icu.en.yaml
99
+
100
+ # the 'other' key is required, and is selected if no other case matches
99
101
invitation_title : >-
100
102
{organizer_gender, select,
101
103
female {{organizer_name} has invited you for her party!}
@@ -112,6 +114,7 @@ typical usage of this is gender:
112
114
<body >
113
115
<trans-unit id =" invitation_title" >
114
116
<source >invitation_title</source >
117
+ <!-- the 'other' key is required, and is selected if no other case matches -->
115
118
<target >{organizer_gender, select,
116
119
female {{organizer_name} has invited you for her party!}
117
120
male {{organizer_name} has invited you for his party!}
@@ -126,6 +129,7 @@ typical usage of this is gender:
126
129
127
130
// translations/messages+intl-icu.en.php
128
131
return [
132
+ // the 'other' key is required, and is selected if no other case matches
129
133
'invitation_title' => '{organizer_gender, select,
130
134
female {{organizer_name} has invited you for her party!}
131
135
male {{organizer_name} has invited you for his party!}
You can’t perform that action at this time.
0 commit comments