PlutoCMS
A CMS Based In Ruby On Rails
20050810226
Hunan University
Define CMS
What’s Content Management System?
Why Ruby On Rails
What’s Ruby?
Ruby is a Dynamic programming Language
Complex but expressive grammar
A core class library with a rich and powerful
API.
What’s Ruby?
Ruby is a Dynamic programming Language
Complex but expressive grammar
A core class library with a rich and powerful
API.
What’s Ruby?
Ruby is a Dynamic programming Language
Complex but expressive grammar
A core class library with a rich and powerful
API.
Ruby Code Example
Ruby Code Example
Something
11991163848716906297072721
What’s Rails Mean?
Framework of Ruby,easier to develop, deploy,
and maintain web applications.
All Rails applications are implemented using
the Model-View- Controller (MVC)
architecture.
Don’t repeat yourself
And,It is Simple and Effective
Design Pattern
Maybe we need just a text editor
What You See Is What You Do
What You See Is What You Do
Stickers
What You See Is What You Do
Stickers
What You See Is What You Do
Stickers
What You See Is What You Do
Stickers
What You See Is What You Do
Stickers
What You See Is What You Do
Stickers
Structure of PlutoCMS
URL
CMS::Application
Templets Routes
Pages
Controller
Sections
Apps Model View
...More
Browser
Templet
Provide Basic Aspect And Frame
Of HTML Pages.
Templet
Provide Basic Aspect And Frame
Of HTML Pages.
Templet
Provide Basic Aspect And Frame
Of HTML Pages.
Pages & Stickers
‣Page is a display node to
show content to user
‣Sticker provide a method to
render dynamic content in
database
Special Sticker Node
con_stickers
sticker_node_id page_id sticker_id position
sticker_node
page sticker
templet templet_id
Custom Modules
In tradition CMS,adding a simple CRUD
module needs mass works.Now its time
to agile
Custom App’s Structure
App’s name , class name ,link database name
App’s attributes(string,integer,date,decimal)
App’s Stickers(show-action,list-action ,etc)
Realization Custom Apps
Select a link-database-table
Link app-attribute to real column of table
Use ERB template to generate relative App
Model , Controller , View
Generate background program
Generate Stickers for pages
Section & Page
Section acts as trees in order
to manage site maps
Each Section has many child
section and pages
Each Page has a special url-
attribute to act user’s request
Sticker Controller
Directly edit on the page
WYSIWYD
Repeatedly in use
Can Contain text, image, fileclip, executable
codes , etc
0 comments
Post a comment