Atom package that adds python's flask microframework snippets for html templates & py controls
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
snippets
.gitignore
CHANGELOG.md
LICENSE.md
README.md
package.json

README.md

flask-snippets

Adds snippets to quickly build Jinja html templates and Flask python controls in Atom.


To install:

apm install flask-snippets

Python controls

Python Snippet

Jinja templates

Jinja Templates


Snippets

All snippets start with the letter f

Jinja Templates:

  • fexp
  • ffilter
  • ffb
  • fcomment
  • fblock --> Generic block, useful for vanilla and extension template blocks
  • fchild
  • fself
  • fsuper
  • ffor
  • fif
  • fife
  • felif
  • fmacro
  • fset
  • finclude
  • fimport
  • fautoescape
  • furl

Flask:

  • "" (single line docstring)
  • """ (multi-line docstring)
  • fapp
  • froute
  • furl
  • fmeth
  • frt
  • ftreq
  • fup
  • fsup
  • frc
  • fsc
  • feh
  • flog

TODO:

  • Add more snippets for more specific cases (flashing, etc.)
  • Add description to snippet's name in the readme file.
  • Review snippets for optimization