Friday, January 17, 2020
Using Vue Variable in Jinja Python Flask
- Using {% raw %} directive
ex.
<div id="app">
{% raw %}
{{ var_from_vue }}
{% endraw %}
</div>
- Using Vue delemiters in Vue Instant
ex.
var app = new Vue({
el: '#app',
data: {
v1: 'variable 1'
},
delimiters: ['[[', ']]']
})
- Custom Directive in Python Flask Jinja
ex.
app = Flask(__name__)
jinja_options = app.jinja_options.copy()
jinja.options.update(dict(
variable_start_string='[[',
variable_end_string=']]'
))
app.jinja_options = jinja_options
Subscribe to:
Post Comments (Atom)
ALCATEL 6900
write memory copy running certified reload from working no rollback-timeout
-
grant execute on utl_http to wc grant execute on dbms_lock to wc; BEGIN DBMS_NETWORK_ACL_ADMIN.create_acl ( acl => &...
-
:system view system-view or sys :show all config dis current-configuration :create vlan vlan vlan_number :show ip interface ...
-
``` sda: add missing path sda: failed to get udev uid: Invalid argument sda: failed to get sysfs uid: Invalid argument sda: failed to ge...
No comments:
Post a Comment
Note: Only a member of this blog may post a comment.