This project intends to create an extensible, maintainable, and clean editor for authoring ImpressJS presentations. I hope this project can also serve as an example of a browser based rich client as the project matures.
Whats the difference between Strut
and Impressionist
?
From a developer's perspective, everything.
In Strut
there is an object for each major component. The
Slides,
SlidePreviews,
TransitionEditor,
SlideEditor,
etc. all have their own objects so its easy to
track down and make changes to a component. Strut
uses RequireJS to keep source files small and
focused. BackboneJS is used for Strut's
data model and serialization as well as for binding events in the
view layers.
In addition to having organized code, the markup for Strut is also split up by component and placed in HandlebarsJS template files.
A github hosted preview is available at: https://tantaman.github.com/Strut/client/web/index.html
The preview currently points to the development version of Strut.
Current features:
- Slide creation
- Text & image insertion
- Text and image manipulation (skew, rotate, scale)
- Fonts and font styles
- Undo/Redo for some operations
- Transition configuration
- ImpressJS preview generation
Most of Strut is written in Coffeescript and uses precompiled templates for HTML rendering.
To compile the CoffeeScript
- Install CoffeeScript (npm install coffeescript)
- cd to the Strut/client directory
- run
rake compileCoffee[w]
(omit [w] to not watch for changes)
To compile the templates
- Install Handlebars (npm install handlebars)
- cd to the Strut/client directory
- run
rake compileTpls
Navigate to client/web/index.html to view Strut.
Here is the basic layout of the source:
- Presentation Model: src/coffee/model/presentation
- Editor UI Layer: src/coffee/ui/editor
- Model -> ImpressJS Rendering: src/coffee/ui/impress_renderer
templates for UI components are contained in web/scripts/ui/COMPONENT_NAME/res/templates in order to package related markup and backing UI (not model) code into modules.
- Impressionist https://github.com/hsivaramx/Impressionist
- ImpressJS (of course) https://github.com/bartaz/impress.js/
- BackboneJS https://documentcloud.github.com/backbone/
- CoffeeScript https://coffeescript.org/
- RequireJS https://requirejs.org/
- JQuery https://jquery.com/
- Rake https://rubyforge.org/projects/rake/
- HandlebarsJS https://handlebarsjs.com/
- DustJS https://akdubya.github.com/dustjs/
- Class class https://ejohn.org/blog/simple-javascript-inheritance/