Thanks to visit codestin.com
Credit goes to github.com

Skip to content

pablo1n7/Smallbook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

85 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

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.

About

Tool for creating presentations with basic slides

https://pharo-smallbook.herokuapp.com

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors