aigis-styleguide / aigis

CSS Styleguide Generator

Home Page:http://aigis-styleguide.github.io/aigis/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Custom template transforms

airtonix opened this issue · comments

In the example directory I notice there is plugins: './plugins which contains a coffeescript plugin.

Not sure what it does, but our use case is that all our patterns are written in dot net mvc razor. we don't wish to duplicate the work of re-writing templates inside the documentation comments of our scss, but would rather just do something like :

/**
 * ---
 * name: Foo Block
 * category: Blocks
 * demo: /opt/app/server/Views/Shared/Blocks/FooBlock.cshtml
 * ---
**/
.foo-block {}
.foo-block__title {}
.foo-block--is-active {}

Our first problem is that obviously the razor templates will include alot of chaff like @using Something.Only.Backend.Devs.Care.About that we'd want to regex remove before rendering it inside the documentation.

Would plugins allow us to perform transforms on template files in this fashion?