app/views/partials
directory.projects
page.projects
page will be loaded with a layout, and so is not a full view itself. One typical approach would be:erb
code necessary for displaying projects (Simply copying the ruby
code part from the above view file).projects.erb
file by calling the partial
function (which is already defined in Eucalypt) in the view:partial
function:count
and top_lang
will then be usable in the partial's ERB file. They are treated as local variables, so just access them by their name.