Sha256: 98d7e5cd13c59acf18fb8e4167b12190724c7ca4e605eed6ad7b58cf3bd41330
Contents?: true
Size: 1.5 KB
Versions: 9
Compression:
Stored size: 1.5 KB
Contents
<h1>Test Page</h1> <p> This page lists all the variables that are available to any renderingfile (e.g. ends in .rhtml). </p> <p> Access them through <code><%= @params[:page_name] %></code>, where <code>:page_name</code> is the name of the attribute you would like to access. </p> <h2>@theme</h2> <p> Gives you access to metadata about the theme, including parameters defined in the <code>themes/theme/theme_config.yml</code> file. </p> <section style="font-family:'Courier New'; padding-bottom:1em;"><%= @theme.inspect %></section> <h2>@params</h2> <p> Gives you access to some useful data created during the page rendering. </p> <section style="font-family:'Courier New'; padding-bottom:1em;"><%= @params.inspect %></section> <h2>@config</h2> <p> Gives you access to all the attribute/ value pairs specified in your <code>config.ru</code> file. </p> <section style="font-family:'Courier New'; padding-bottom:1em;"><%= @config.inspect %></section> <h2>@categories</h2> <p> Gives you access to your list of categories and associated metadata. Useful for creating a nav bar. </p> <section style="font-family:'Courier New'; padding-bottom:1em;"><%= @categories.inspect %></section> <h2>@articles</h2> <p> Gives you access to each article returned with your request (the most recent <code>@config[:max_articles]</code>). This also includes any additional attribute/ value pairs specified in the article header. </p> <section style="font-family:'Courier New'; padding-bottom:1em;"><%= @articles.inspect %></section>
Version data entries
9 entries across 9 versions & 1 rubygems