Skip to content
Tool for creating presentations with basic slides
Smalltalk CSS HTML JavaScript
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
BaselineOfSmallbook
Smallbook-Tests
Smallbook
StaticFiles
.project
.properties
README.md

README.md

Smallbook

Smallbook is a tool for creating presentations with basic slides and show them in a web browser. Programmed in Pharo for Pharo :)

Install

Metacello new
  baseline: #Smallbook;
  repository: 'github://pablo1n7/Smallbook';
  load.

Example Page

Basic usage

server := SBServer new: 8080 staticFolder: ('/MY/DIR/USER/STATIC/userStatic').
SBSlide style:'simple_light'.

Special Slide in localhost:8080/1.

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.

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.

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.

server start. 

Stop Server.

server stop.

Export HTML.

"after start server!"
server saveHTML: '/MY/DIR/USER/EXPORT/'.

Styles

TODO:

  • Export to PDF.
  • Create SBSlide from file.
  • More components.
You can’t perform that action at this time.