aigis icon indicating copy to clipboard operation
aigis copied to clipboard

Custom template transforms

Open airtonix opened this issue 8 years ago • 0 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?

airtonix avatar Jul 26 '17 02:07 airtonix