## Welcome to Weaver 0.6.0

The following is a rough documentation intended to simply demonstrate and enumerate the facilities provided by weaver

This documentation page is written in Weaver too! See

https://github.com/davidsiaw/weaver-doc-source

##### Installing Weaver
gem install weaver
##### Creating a new weaver site
weaver create my_site

This will create a folder that looks like this:

my_site/
├── Gemfile
├── Gemfile.lock
├── images
└── source
└── index.weave

Weave files are where you describe websites. To preview your site, simply go

cd my_site
bundle install
bundle exec weaver

To build your website simply use the following command:

bundle exec weaver build

Your website will be generated and placed in the build directory

If your website is not a root website (it is in a subdirectory), then you can add the -r parameter, as we do for this documentation site:

bundle exec weaver build -r http://davidsiaw.github.io/weaver-docs/

This sets the root for images and other things such as links

##### Simple example Weave file

The most basic file takes one argument: the title, and a block that contains the contents of the page

##### Weave files only contain Ruby code

This means that you can do whatever you can normally do in Ruby

##### You can use all the HTML tags by simply calling them as if they are methods:

This is Preformatted
This is Emphasized
This is in a Blockquote

Paragraph text

##### You can also put attributes on a tag

This allows you to change styles, set more attributes on it, etc ...

Some text colored red
##### You can also wrap content in another tag

This is the same as doing it in HTML. Instead of passing it a string, you use a block

### Some text colored red

Like lists:

• Haruhi
• Kyon
• Itsuki
1. Nagato
2. Mikuru
3. Tsuruya
##### AsciiMath

There is support for AsciiMath

sum_(i=1)^n i^3=((n(n+1))/2)^2

##### Icons

There are icons available in here since the theme uses bootstrap

Github
User
##### There are different page templates to choose from

All page templates are responsive

### Structureless pages

Structureless pages allow you to directly write content

### Structured pages

Structured pages require all content to be placed in headers/rows and columns

Some content

Some content

Some content

Some content

Some content

Some content

Some content

## Jumbotron

gray

white

blue

lazur

yellow

red

black

Woof

Meow

Quack

##### There are two other possible orientations

There is :left and :right

Woof

Meow

Quack

Car

Subway

Bus

Woof

Meow

Quack

NameClass
Haruhi2-B
Kyon2-B
Mikuru3-A
##### Bordered style

You can mix and match styles

NameClass
Haruhi2-B
Kyon2-B
Mikuru3-A
NameClass
Haruhi2-B
Kyon2-B
Mikuru3-A
NameClass
Haruhi2-B
Kyon2-B
Mikuru3-A
##### Data Table

Data table JQuery plugin

NameClass
Haruhi2-B
Kyon2-B
Mikuru3-A
##### Foo Table

Foo Table plugin

NameClassInfoPower
Haruhi2-BUninterested in humansReality change
Kyon2-BIs the real GodControl over Haruhi
Mikuru3-AClassified informationClassified information
nameage
Haruhi17
Mikuru18
Kyon17
Nagato17
Itsuki17
Tsuruya18
nameageclass
Haruhi172-B
Mikuru183-A
Kyon172-B
Nagato172-A
Itsuki172-C
Tsuruya183-A
##### Describing multiple pages in one weave file

It is possible to describe multiple pages in one weave file. Simply pass it two arguments, the first being the path of the page, and the second the title of the page

This is usually useful if you are generating a site with multiple pages generated from some data