Giter Club home page Giter Club logo

phpstorm-live-templates-twig-octobercms's Introduction

Phpstorm Live Templates Twig OctoberCMS (Archived: OctoberCMS is totally dead because of greediness)

References

Common Boilerplate

Abbreviation Description Code Generated
!ph Inject to placeholder variable {% put ... %} ... {% endput %}
!phd Inject to placeholder variable and default {% put ... %} ... {% endput %}
!scripts Inject to scripts {% put scripts %} <script> ... </scripts> {% endput %}
!styles Inject to styles {% put styles%} <style> ... </style> {% endput %}
comp Generate component block {% component '...' %}
content Generate content block {% content '...' %}
dump Generate dump block {{ dump(...) }}
fajax Generate form_ajax block {{ form_ajax() }}
fclose Generate form_close block {{ form_close() }}
flash Generate flash block {% flash %}...{% endflash %}
fopen {{ form_open() }}
for {% for ... in ... %} ... {% endfor %}
fore {% for ... in ... %} ... {% else %} ... {% endfor %}
hc {{ html_clean('...') }}
he {{ html_email('...') }}
hl {{ html_limit('...') }}
hs {{ html_strip('...') }}
if Generate if block {% if ... %} ... {% endif %}
ife Generate if else block {% if ... %} ... {% else %} ... {% endif %}
ifs Generate if else shorthand {{ ... ? '...' : '...' }}
macro {% macro var1(...) %} ... {% endmacro var1 %}
page {% page %}
partial {% partial '...' %}
ph {% placeholder ... %}
phd {% placeholder ... default %} ... {% endplaceholder %}
scripts {% scripts %}
strc {{ str_camel(...) }}
strl {{ str_limit(...) }}
strpl {{ str_plural(...) }}
strsn {{ str_snake(...) }}
strsn2 {{ str_snake(...), '...' }}
strst {{ str_studly(...) }}
strw {{ str_words(...) }}
styles {% styles %}
tc {{ this.controller.var }}
te {{ this.environment.var }}
tl {{ this.layout.var }}
tpg {{ this.page.var }}
tpr {{ this.param.var }}
ts {{ this.session.var }}
tt {{ this.theme.var }}
verb {% verbatim %} ... {% endverbatim %}
|app {{ '...' | app }}
|d {{ '...' | default }}
|ih {{ '...' | imageHeight }}
|iw {{ '...' | imageWidth }}
|md {{ '...' | md }}
|m {{ '...' | media }}
|p {{ '...' | page }}
|raw {{ '...' | raw }}
|rs {{ '...' | resize }}
|th {{ '...' | theme }}

Additional Boilerplate

Abbreviation Description
~html HTML boilerplate + meta + combine CSS & JS
cc Combine CSS file
cj Combine JS file

phpstorm-live-templates-twig-octobercms's People

Contributors

zunnurs01 avatar

Watchers

 avatar  avatar

Forkers

dheia

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.