@cnbritain/wc-bbcodedeprecated

BBCode templates

Usage no npm install needed!

<script type="module">
  import cnbritainWcBbcode from 'https://cdn.skypack.dev/@cnbritain/wc-bbcode';
</script>

README

wc-bbcode

BBCode templates

Settings

Base embed

Key Optional Default Description
content false The content to display in the embed
class true '' Additional classes to apply

Image

Key Optional Default Description
image false The image object sent to common image
attrs true None Attrs set in the bbcode
article true None The article the bbcode is in

List

Key Optional Default Description
list_items false A list of items
list_type true 'unordered' The type of list. Can be unordered and ordered

Themes

Base embed

  • Wired

Image

  • Wired

List

  • Wired

Prerequisites:

  • Node.jsbrew install node
  • Grunt - npm install -g grunt-cli
  • Other prereqs? Python? Virtualenv?

Demo:

Install dependencies:

npm install

Build the things:

npm run sass
npm run js

Python the pythons:

cd demo
virtualenv .
source bin/activate
pip install -r requirements.txt

Start the demo server:

python demo.py