ai / evil-blocks

Tiny framework for web pages to split your app to separated blocks
MIT License
131 stars 10 forks source link

Haml evil blocks shortcuts support. #16

Closed vladson closed 10 years ago

vladson commented 10 years ago

Many people and projects still use haml as their templating language. Though haml doesn't support shortcuts, as SLIM does, it is still possible to monkeypatch haml parser for these options. So the question is to add this trick to the gem, or to make a separate one just for this purpose?

ai commented 10 years ago

Comrade @gazay added roles to Haml. But we need to update this old gem:

  1. Generates data-role instead of role.
  2. Add @@block alias to data-block.
  3. Maybe update to works with latest Haml.
vladson commented 10 years ago

Hi, Andrey! Old gem from @gazay was forked from another old one, so I decided to make a separate one. Role Block Haml If It wil be ok, I can add link to evil_block's README.

ai commented 10 years ago

Cool! Thank for this plugin.

Can you send PR with README.md fix?

ai commented 10 years ago

Done c15b36538a63ae81cc81de48db5001a85a908136