Sha256: df77acc9a39eb076586f6acba06225beb1258371de3e2180d54c62f38baa54c5

Contents?: true

Size: 1.02 KB

Versions: 1

Compression:

Stored size: 1.02 KB

Contents

<%# Returns the extension (the portion of file name in path after the period) %>
<% extname = File.extname(path) %>

<%# Returns components of the filename, + last component of the filename sans the extension  %>
<% fullPath = File.dirname(path) + '/' + File.basename(path, extname)%>

<%# Returns components of the filename, + last component of the filename w/the extension  %>
<% fullPathExtname = File.dirname(path) + '/' + File.basename(path)%>

<%# prepends path to fullPathExtname %>
<% mtime_path = 'views/' + fullPathExtname %>

<%# wrapps fullPathExtname for display in the view %>
<% file_path = '< File path: ' + fullPathExtname + ' ' + '>' %>

<%# ---------------------------------------------- %>

<article class="element_example">
<%= partial fullPath %>
</article>

<div class="example_code">
  <p class="codeToggle"><a href="#">view</a></p>
  <pre class="prettyprint linenums hidden">
<%= code partial fullPath %>
  </pre>
  <p><%= path %></p>
  <p class="mtime">
    Last modified: <%= File.mtime(mtime_path) %>
  </p>
</div>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
toadstool-0.0.0.1 views/shared/_html_example.erb