Search

This page displays, in full length, all entries available on this blog. As a result, you can search the entire content of this blog by simply searching within this page!

In most web browsers, the internal search mechanism is activated by either (1) pressing the forward slash key alone or (2) by pressing the Control and F keys simultaneously.


An entry from the input/ directory

This is an entry from the input/ directory.

  • Input file path : input/example-paths.yaml
  • Input relative URL : example-paths.yaml
  • Output file path : output/example-paths.html
  • Output relative URL : example-paths.html

Notice that this blog entry’s output file name was not automatically calculated by Rassmalog to contain its date and name parameters. Instead, the output file path is simply a mirror of the input file path — minus the ‘.yaml’ extension.

1  Source of this blog entry

name: An entry from the input/ directory

date: 25 Sep 2007

tags: 
  - examples
  - reference

body: |
  This is an entry from the <tt>input/</tt> directory.

  * Input file path     : <tt><%= @entry.input_file  %></tt>
  * Input relative URL  : <tt><%= @entry.input_url   %></tt>
  * Output file path    : <tt><%= @entry.output_file %></tt>
  * Output relative URL : <tt><%= @entry.output_url  %></tt>

  Notice that this blog entry's output file name was _not_ automatically calculated by Rassmalog to contain its *date* and *name* parameters. Instead, the output file path is simply a mirror of the input file path -- minus the '.yaml' extension.


  h1. Source of this blog entry

  <pre><%=h File.read(@entry.input_file) %></pre>

Date 2007 September 25, Tuesday 12:00 AM
Tags examples · reference
Comments You may send comments by e-mail.


An entry from the entries/ directory

This is an entry from the entries/ directory.

  • Input file path : entries/example-paths.yaml
  • Input relative URL : example-paths.yaml
  • Output file path : output/2007-09-25-an-entry-from-the-entries-directory.html
  • Output relative URL : 2007-09-25-an-entry-from-the-entries-directory.html

Notice that this blog entry’s output file name was automatically calculated by Rassmalog to contain its date and name parameters.

1  Source of this blog entry

name: An entry from the entries/ directory

date: 25 Sep 2007

tags:
  - reference
  - examples

body: |
  This is an entry from the <tt>entries/</tt> directory.

  * Input file path     : <tt><%= @entry.input_file  %></tt>
  * Input relative URL  : <tt><%= @entry.input_url   %></tt>
  * Output file path    : <tt><%= @entry.output_file %></tt>
  * Output relative URL : <tt><%= @entry.output_url  %></tt>

  Notice that this blog entry's output file name was automatically calculated by Rassmalog to contain its *date* and *name* parameters.


  h1. Source of this blog entry

  <pre><%=h File.read(@entry.input_file) %></pre>

Date 2007 September 25, Tuesday 12:00 AM
Tags examples · reference
Comments You may send comments by e-mail.


Formatting with Textile

The following text is a sample from the Textile website. It will show you how to format your text with Textile.

1.1  This is a title

1.1.1  This is a subhead

This is some text of dubious character. Isn’t the use of “quotes” just lazy writing — and theft of ‘intellectual property’ besides? I think the time has come to see a block quote.

This is a block quote. I’ll admit it’s not the most exciting block quote ever devised.

Simple list:

  1. one
  2. two
  3. three

Multi-level list:

  1. one
    1. aye
    2. bee
    3. see
  2. two
    1. x
    2. y
  3. three

Mixed list:

  • Point one
  • Point two
    1. Step 1
    2. Step 2
    3. Step 3
  • Point three
    • Sub point 1
    • Sub point 2

Well, that went well. How about we insert an old-fashioned hypertext link? Will the quote marks in the tags get messed up? No!

This is a link

this is a header
this is a row
this is another row

An image:

optional alt text

  1. Librarians rule
  2. Yes they do
  3. But you knew that

Some more text of dubious character. Here is a noisome string of CAPITAL letters. Here is something we want to emphasize.
That was a linebreak. And something to indicate strength. Of course I could use my own HTML tags if I felt like it.

1.1.2  Coding

This is some code, "isn't it". Watch those quote marks! Now for some preformatted text:

  $text = str_replace("<p>%::%</p>","",$text);
  $text = str_replace("%::%</p>","",$text);
  $text = str_replace("%::%","",$text);

This isn’t code.

So you see, my friends:

  • The time is now
  • The time is not later
  • The time is not yesterday
  • We must act

Date 2006 December 14, Thursday 12:00 AM
Tags examples · reference
Comments You may send comments by e-mail.


File format of a blog entry

This article serves as a reference for the file format of a blog entry. Have a look at the source of this blog entry by reading the entries/example-entry.yaml file (whose contents are shown below).

Here is the summary of this blog entry:

This is a user-defined placeholder for the summary of this blog entry. See the content of this blog entry for the real summary!

1  Adding your own parameters

You can add arbitrary parameters to a blog entry source file (which is really a YAML file) and use them in the blog entry’s content (the text parameter).

For example, in the source of this blog entry, you will find two custom parameters whose names begin with “your_own_parameter”. To insert the values of these parameters into the blog entry’s content, we use the following eRuby directive:

<%= @entry[ 'name_of_the_parameter' ] %>

Here, we access a parameter’s value by passing the parameter’s name into the [] operator of the @entry object.

Expression Result
<%= @entry['your_own_parameter1'] %> hello world
<%= @entry['your_own_parameter2'] %> ruby rocks!

2  Source of this blog entry

#
# This is a blog entry which demonstrates the file format for all blog entries.
# Blog entries are _plain text_ files marked up in YAML syntax. They are
# composed of key-value pairs, known as _parameters_, whose values are defined
# by you.
#
# The default set of parameters are shown below.  Of these, only the 'name' and
# 'text' parameters are required; the other parameters are completely optional.
#
# For your convenience, the description of each parameter
# below is marked with one or more of the following emblems:
#
# * (Required) This parameter is required.  If it is not present,
#              then Rassmalog will ignore this blog entry file.
#
# * (Optional) This parameter is completely optional.
#
# * (eRuby) You can use eRuby directives in the value of this parameter.
#
# * (HTML) The value of this parameter will be transformed into HTML using the
#          standard mechanism defined in the <tt>config/format.rb</tt> file.
#
# * (Example) This parameter is bogus; it exists
#             purely for illustrative purposes.
#
# In addition to the default set of parameters, you can define and use your own
# custom parameters in this blog entry.  An example of this is shown below.
#


#
# (Required) (eRuby) (HTML)
#
# The title of this blog entry.
#
name: File format of a blog entry


#
# (Optional) (eRuby)
#
# The date when this blog entry written.
#
# Here are some examples:
#
#   date: Thu, 01 Jan 1970 08:00:00 GMT
#   date: 1970-01-01 8:00am
#   date: 1/1/1970 8:00am
#   date: jan 1st 1970 16:00 -08:00
#   date: 1 january 1970
#   date: Wed Dec 13 21:31:04 PST 2006
#
# You can also specify dates in other languages.  For
# example, the following date
#
#   date: Thursday, 01 January 1970 03:15:00 PM
#
# can be written in German as:
#
#   date: Donnerstag, 01 Januar 1970 15:15:00
#
# For more information about the format of this parameter, see the documentation
# for the Time.parse method by typing the following command at your terminal:
#
#   ri Time.parse
#
# or by visiting the following URL:
#
#   http://www.ruby-doc.org/core/classes/Time.html#M000297
#
# If you do not specify this parameter, then Rassmalog will
# use the modification time of this source file instead.
#
date: Dec 8 2006 11:00pm  # put today's date and time here


#
# (Optional)
#
# The categories/labels which classify this blog entry.
#
tags:
  - reference
  - examples


#
# (Optional) (eRuby)
#
# A relative path (with respect to the <tt>output/</tt>
# directory) to the output HTML file for this blog entry.
#
output_file: blog-entry-file-format.html


#
# (Optional)
#
# Controls whether this entry is displayed in the
# lists of tags, archives, and recent/all entries.
#
hide: false


#
# (Optional)
#
# Overrides the *generate_toc* parameter that is defined in the main
# blog configuration file (<tt>config/blog.yaml</tt>).  This parameter
# controls whether a table of contents is generated for this blog entry.
#
generate_toc: true


#
# (Optional) (eRuby) (HTML)
#
# Overrides the automatic summarization mechanism, which is
# defined in the <tt>config/entry.erb</tt> template, by allowing
# you to specify a predefined summary for this blog entry.
#
summary: |
  This is a user-defined placeholder for the summary of this blog entry. See the content of this blog entry for the real summary!


#
# (Example)
#
# This is an example of how you can specify your own custom
# parameters and use them in the content of this blog entry.
#
your_own_parameter1: hello world
your_own_parameter2: ruby rocks!


#
# (Required) (eRuby) (HTML)
#
# The content of this blog entry.
#
# In this parameter, you can use the following
# predefined variables inside eRuby directives:
#
# * BLOG        - data from the blog configuration file
# * LANG        - data from the translation file
# * ABOUT_PAGE  - the blog entry corresponding to the about page
# * SEARCH_PAGE - the blog entry corresponding to the search page
# * ENTRIES     - array of all blog entries (Entry objects)
# * TAGS        - array of all tags (Section objects)
# * ARCHIVES    - array of all archives (Section objects)
# * FEEDS       - array of all feeds (Feed objects)
# * @entry      - the Entry object for which we are generating HTML
# * @summarize  - should this entry be summarized?
# * @solo       - is this entry being rendered alone, on its own page?
#
body: |
  This article serves as a reference for the file format of a blog entry.  Have a look at the source of this blog entry by reading the <tt><%= @entry.input_file %></tt> file (whose contents are "shown below":#source).

  Here is the summary of this blog entry:

  bq. <%= @entry['summary'] %>


  h1. Adding your own parameters

  You can add arbitrary parameters to a blog entry source file (which is really a YAML file) and use them in the blog entry's content (the *text* parameter).

  For example, in the source of this blog entry, you will find two custom parameters whose names begin with "your_own_parameter". To insert the values of these parameters into the blog entry's content, we use the following eRuby directive:

  <code lang="rhtml"><%%= @entry[ 'name_of_the_parameter' ] %></code>

  Here, we access a parameter's value by passing the parameter's name into the [] operator of the @@entry@ object.

  |_. Expression|_. Result|
  |<code lang="rhtml"><%%= @entry['your_own_parameter1'] %></code>|<%= @entry['your_own_parameter1'] %>|
  |<code lang="rhtml"><%%= @entry['your_own_parameter2'] %></code>|<%= @entry['your_own_parameter2'] %>|


  h1(#source). Source of this blog entry

  <pre><%=h File.read(@entry.input_file) %></pre>

Date 2006 December 08, Friday 11:00 PM
Tags examples · reference
Comments You may send comments by e-mail.


Date 2008 August 01, Friday 07:15 PM
Comments You may send comments by e-mail.


Author Suraj N. Kurapati
Generator Rassmalog 12.0.1
Icons Tango Icon Theme 0.8.1