Example Sources

Fragmenta is a tool for generating static websites from folders of files and images. Instead of using a manual editing tool like coda or dreamweaver, you can generate from files containing ruby code, textile markup. You can even use word documents. Images are read for their XMP tags and displayed with that information. Below are some examples of reading different formats.

RTF document

This HTML is generated from an RTF document

I am bold, I am italic generated from an RTF document.  

FragmentRubycode

© 2007 Kenny Grant – released under MIT licence (see Licence.txt)

Parses ruby code files for Fragmenta

This is a sample of a snippet of HTML generated from a live ruby document

 include Singleton

set up a class variable

initialize

def initialize

 @type  = ‘text’

 @file_types = [’.rb’]

end

Can we read this file?

file_readable?(in_path)

def file_readable?(in_path)

 @file_types.include?(File.extname(in_path))

end

Word document

This HTML is generated from a document saved in word format.


I am bold, I am italic test me please. 


Italic here

A new paragraph