lib/amber/static_page/filesystem.rb
def variable_files
      if @simple_page
        directory = File.dirname(@file_path)
        regexp = SIMPLE_VAR_MATCH_RE.call(@name)
      else
        directory = @file_path
        regexp = VAR_FILE_MATCH_RE
      end
      hsh = {}
      Dir.foreach(directory) do |file|
        if file && match = regexp.match(file)
          locale = match['locale'] || I18n.default_locale
          hsh[locale.to_sym] = File.join(directory, file)
        end
      end
      hsh
    end
def variable_files
      if @simple_page
        directory = File.dirname(@file_path)
        regexp = SIMPLE_VAR_MATCH_RE.call(@name)
      else
        directory = @file_path
        regexp = VAR_FILE_MATCH_RE
      end
      hsh = {}
      Dir.foreach(directory) do |file|
        if file && match = regexp.match(file)
          locale = match['locale'] || I18n.default_locale
          hsh[locale.to_sym] = File.join(directory, file)
        end
      end
      hsh
    end
VARIABLES
 Variables are associated with a page, but unlike properties they are not
 inheritable. Variables are defined in a separate file.