We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
it would be nice to have some form of demo code which can be directly executed on download.
The text was updated successfully, but these errors were encountered:
Something like this?
require('vendor/bem/bh/index.php'); $bh = new BEM/BH(); $bh->match('type1', function ($ctx, $json) { $ctx->tag('button'); }); $bh->match('type2', function ($ctx, $json) { $ctx->attrs(['id' => 12]); }); echo $bh->apply([ ['block' => 'type1'], ['block' => 'type2'], ]); // will render: <button class="type1"></button><div class="type2" id="12"></div>
Sorry, something went wrong.
No branches or pull requests
it would be nice to have some form of demo code which can be directly executed on download.
The text was updated successfully, but these errors were encountered: