You cannot post messages because only members can post, and you are not currently a member.
|
helpers - how do I access them?
|
| |
So I have a file called page_helper.haml in src/helpers
It contains:
module SomeHelper
def page_options
@page_options ||= begin
options = {}
if current_page.include? "test_string_one"
options[:total_index] = 3
options[:next_location] = '../random_string/page0.html'... more »
|
|
if else nesting
|
| |
Hi guys I'm having trouble with if and else statements in my layout
files.
As this may not relate to purely staticmatic builds I have posted it
on stack overflow.
[link]
Thanks,
Joe
|
|
offer to host/update staticmatic docs
|
| |
As my requests to update the docs have not been actioned, I would like
to volunteer to help with anything I can do relating to the website.
i.e updating the docs with the answers in this forum. Cheers, Joe
|
|
do helpers get auto-compiled?
|
| |
If I make a file called application.rb in src/helpers will it get
compiled on build and be available to the rest of the src? Thanks
|
|
switch statement syntax
|
| |
I'm sure this is down to my lack of ruby knowledge but can I replace
this with some sort of switch statement?
- if current_page.include? "introduction"
=partial('config/intro.haml')
- if current_page.include? "test"
=partial('config/testing.haml' )
- if current_page.include? "beaver"
=partial('config/beavering.ham l')... more »
|
|
Sass :css_filename option not being set?
|
| |
Hey Steve,
Just been having a problem with my Staticmatic project and thought it
was an issue with Compass, but further investigations seem to indicate
it might be something to do with Staticmatic.
Here's the thread on the Compass list:
[link]... more »
|
|
Targets for 0.10.7
|
| |
Hey All,
Based on recent discussions and my own internal requirements, I've
compiled a shortlist of features/fixes to get in for the next release.
Take a look over it and let me know your thoughts:
[link]
I'll prioritise any bugs, but features may have to wait for another... more »
|
|
Using Local Parameters with Partials
|
| |
So the parameters are not appearing for me in the partial templates. I
am not sure why though. What appears instead for a set parameter is a
boolean value, i.e. true. That probably means that this vaiable is
set, but why are they not appearing then?
I am invoking them this way embeddind them this way... more »
|
|
|