Tool for creating presentations with basic slides
# Smallbook
Smallbook is a tool for creating presentations with basic slides and show them in a web browser. Programmed in Pharo for Pharo :)
# Install
```smalltalk
Metacello new
baseline: #Smallbook;
repository: 'github://pablo1n7/Smallbook';
load.
```
# [Example Page](https://pharo-smallbook.herokuapp.com)
# Basic usage
```smalltalk
server := SBServer new: 8080 staticFolder: ('/MY/DIR/USER/STATIC/userStatic').
SBSlide style:'simple_light'.
```
## Special Slide in localhost:8080/1.
```smalltalk
slide:=(SBSlide new:'Smallbook') specialSlide.
slide addComponent: (SBParagraph new: 'Smallbook is a tool for creating presentations with basic slides and show them in a web browser. Programmed in Pharo for Pharo :) ').
server addSlide: slide.
```

## New Slide in localhost:8080/2.
```smalltalk
slide := SBSlide new:'Syntax in Pharo' style:'simple_light'.
slide addComponent: (SBParagraph new: 'Examples').
slide addComponent: (SBCode new: '
|number string list|
"comments"
number := 20.
string := ''String''.
list := #(1 2 3 4 5).
list do: [ :each | Transcript show: each;cr. ]
').
server addSlide: slide.
```

## New Slide in localhost:8080/3.
```smalltalk
slide := SBSlide new:'Pharo'.
slide addComponent: (SBParagraph new:'Pharo is a pure object-oriented programming language and a powerful environment, focused on simplicity and immediate feedback (think IDE and OS rolled into one).').
slide addComponent: (SBImage new: 'https://pharo.org/web/files/pharo.png' align: 'Center' percentSize:40).
server addSlide: slide.
```

## Start Server listening to port 8080.
```smalltalk
server start.
```
## Stop Server.
```smalltalk
server stop.
```
## Export HTML.
```smalltalk
"after start server!"
server saveHTML: '/MY/DIR/USER/EXPORT/'.
```
# Styles

# TODO:
* [ ] Export to PDF.
* [ ] Create SBSlide from file.
* [ ] More components.