Skip to content

{{BlockName}}, {{ElemName}} and {{ModName}}

Latest
Compare
Choose a tag to compare
@f0rmat1k f0rmat1k released this 01 May 12:29
· 4 commits to master since this release

Added new placeholders. Useful when you need capitalized notation. For example, my template for react:

import React from 'react';
import b from 'b_';

import './{{blockName}}.css';

export default class {{BlockName}} extends React.Component {
	constructor(props) {
		super(props);
	}

	render() {
		const {{blockName}} = b.with('{{blockName}}');

		return (
			<div className={{{blockName}}()}>
				{{cursor}}
			</div>
		);
	}
}

{{BlockName}}.contextTypes = {
	bunker: React.PropTypes.object
};