fxbois / web-mode

web template editing mode for emacs
https://web-mode.org
GNU General Public License v3.0
1.64k stars 260 forks source link

[Feature] Support for Blade templating engine #32

Closed kaustavdm closed 11 years ago

kaustavdm commented 11 years ago

Laravel uses the Blade templating engine, which is in fact a pretty expressive templating engine in PHP. Can this be integrated into web-mode?

Specifically, I want :

  1. Proper indentation of {{ }} and @ tags.
  2. Treating content in {{ }} as PHP.
  3. Support for Blade comments. i.e. code within {{-- --}}.
  4. Support for Blade's control structures.

For details of the Blade templating engine, please see http://laravel.com/docs/views/templating#blade-template-engine.

fxbois commented 11 years ago

@kaustavdm I'll try to work on this. Some help that would be appreciated:

kaustavdm commented 11 years ago

@fxbois Extension for Blade templates is .blade.php.

There are quite a good number of projects on Github using Blade templating engine. Orchestra is one such project. For examples of code have a look at:

fxbois commented 11 years ago

I World prefer an example that centralize all thé features ans synthaxes

fxbois commented 11 years ago

@kaustavdm the last commit brings blade compatibility

kaustavdm commented 11 years ago

You're a genius! Things look superb on my Emacs :100: Thanks a lot! emacs Prelude - -source-judephis-bundles-admin-views-login-index blade php_010

fxbois commented 11 years ago

@kaustavdm I'm glad you like it. Do not hesitate to share it with the blade community.