I use staticmatic for templates I use later with PHP. There is an odd situation where some tag attributes have single quotes, while some have double quotation marks. I would like all of them to have double quotes exclusively (not that it matters I guess, but I want them like that!)
For example, haml code:
!!! XML
%html{html_attrs('hr-H...
There must be a better way of writing this- I'm just not sure how (using staticmatic)-
- if current_page.include? "0.html"
- @current_index = 1
- if current_page.include? "1.html"
- @current_index = 2
- if current_page.include? "2.html"
- @current_index = 3
- if current_page.include? "3.html"
- @current_index = 4
- if current_pa...
I have a config file full of this....
- if current_page.include? "test_string_one"
- @total_index = 3
- @next_location = '../random_string/page0.html'
- @next_name = 'title 2'
- if current_page.include? "test_string_two"
- @total_index = 10
- @next_location = '../another_random_string/page0.html'
...
I only want to output one anchor here. If the current_page is in the array I get two (.html and -nf.html). If it is not in the array I get as many anchors as there are items in the array.
I am using StaticMatic.
- if page_options[:current_index] < page_options[:total_index] && page_options[:current_index] > 0
// loop through the ...
what i want is a way of nesting partial properties, this seems a tad long winded:
= partial('frames/tabs_a', :locals => {:tabs_title => 'semi-dynamic-tabs',
:tabs_id => 'p001',
:panel_a => 'views/article-highlights_a',
:a_id => 'p_002_0',
:a_ft => '123 More in highlights',
:a_tt => 'panel a',
:a_c => 'magazine',
:panel_b...
I have been trying to use nanoc for generating a static website. I need to organize a complex arrangement pages I want to keep my content DRY.
How does the concept of includes or merges work within the nanoc system? I have read the docs but I can't seem to find what I want.
For example: how can I take two partial content items and merg...
I'm trying to setup a very basic id="thisFileName" in my staticMatic project.
So far I've managed to apply the following to an /index.html (the HAML output):
- @slug = current_page.gsub(/\.html/, '')
Which returns "/index". However - I'd like to remove the / at the start so that it reads /index...
Any tips or directions for where ...