Flask Snippet Extension
Flask Snippet Extension contains various useful snippets for Flask code (Python), HTML code and for Jinja rendering.
Collaboration
Check out the GitHub page for any issues
Check out the Youtube Channel for tech content
Check out the Discord Server for helping improve the extension
Issues
Commands (Jinja)
Conditional statements
Trigger |
Description |
if |
if in jinja |
else |
else in jinja |
elif |
else if in jinja |
ifelse |
if and else in jinja |
endif |
endif in jinja |
Blocks and Extended Templates
Trigger |
Description |
ex{ |
extended template |
extends |
extends keywork in jinja |
block |
block keyword in jinja |
Loop
Trigger |
Description |
for |
for loop in jinja |
fori |
for loop with range |
HTML Templates
Trigger |
Description |
hbs4 |
html with bootstrap4 |
hbs4js |
html + bs4 + js |
Commands (Python)
Trigger |
Description |
flask-basic |
Basic Flask App |
flask-login-full |
Full Flask Login implementation |
flask-user-model |
Barebones User Model for Flask |
blueprint |
Flask Blueprint |
register_blueprint |
Register blueprint |
rdu |
Redirect with url_for |
rd |
Redirect |
err |
Error Handler |
log |
Logger |
confp |
To take config file from py file |
| |