Questions tagged [staticmatic]
11 questions
18
votes
3 answers
Haml - how do I force tag attributes to use double quotes only AND how do I order tag attributes the way I want?
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…

Keyframe
- 1,390
- 1
- 14
- 28
5
votes
1 answer
Merge items in nanoc
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…

Gordon Potter
- 5,802
- 9
- 42
- 60
4
votes
1 answer
StaticMatic setup: error with Compass integration
I'm getting an error when attempting to setup a new StaticMatic project. After utilizing:
$ staticmatic setup my_site
I am getting the following output with an error which seems to be generated by…

BronzeGate
- 504
- 1
- 4
- 11
2
votes
1 answer
Running staticmatic preview command results in webrick error
I get the following error with the following staticmatic preview command
staticmatic preview my-app
Site root is: my-app
StaticMatic Preview Server
Ctrl+C to exit
[2010-12-16 11:42:24] INFO WEBrick 1.3.1
[2010-12-16 11:42:24] INFO ruby 1.8.7…

jenson-button-event
- 18,101
- 11
- 89
- 155
1
vote
4 answers
Simple Compass+HAML webserver
I love compass (SASS) and HAML. I've been using staticmatic for building static web pages. Staticmatic seams outdated (no updates, bugs). What are the alternatives?
What I would like:
$ preview .
> Server started ad port XXXX
> Now you can use…

xpepermint
- 35,055
- 30
- 109
- 163
1
vote
1 answer
Escape forward slash in Ruby url helper
Setuping a staticMatic project using /index.html:
@slug = current_page.gsub(/\.html/, '')
returns "/index(.html)", but should be /index
Changing term corrects: - @slug = current_page.gsub("/", "").gsub(".html", "") as found in:…

kaichanvong
- 381
- 3
- 12
1
vote
2 answers
haml syntax - nesting partial properties
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',
…

Dr. Frankenstein
- 4,634
- 7
- 33
- 48
1
vote
2 answers
ruby - if string is not contained within an array
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] <…

Dr. Frankenstein
- 4,634
- 7
- 33
- 48
0
votes
3 answers
Eclipse haml/sass editing + html /css generation
I've been playing with haml and sass and generating a flat site with staticmatic from the command line.
Has anyone been using an ide for this?
I have the Apatana studio (RadRails) plugin installed and it has haml & sass highlighting out of the box.…

jenson-button-event
- 18,101
- 11
- 89
- 155
0
votes
1 answer
haml syntax - better way of writing this?
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"
…

Dr. Frankenstein
- 4,634
- 7
- 33
- 48
0
votes
2 answers
haml syntax - better way of writing this?
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"
-…

Dr. Frankenstein
- 4,634
- 7
- 33
- 48