_plugins/page_generator.rb
# Creates instances of TactileImagePage, renders then, and writes the output to a file.
Creates instances of TactileImagePage, renders then, and writes the output to a file.
Creates instances of TactileImagePage renders then and writes the output to a file .
def write_all_files
      json_filename = self.config['data_image_file'] 
      data_hash = read_data_object( json_filename ) 
      json_mtime = data_hash['mtime'] if data_hash
      data = data_hash['data'] if data_hash
      puts "## Tactile images file read: found #{data.length} images"
      write_tactile_images( data, '_tactile_images', 'tactile_images', json_mtime)
    end
def write_all_files json_filename = self . config [ 'data_image_file' ] data_hash = read_data_object ( json_filename ) json_mtime = data_hash [ 'mtime' ] if data_hash data = data_hash [ 'data' ] if data_hash puts "## Tactile images file read: found #{data.length} images" write_tactile_images ( data , '_tactile_images' , 'tactile_images' , json_mtime ) end
Creates instances of TactileImagePage, renders then, and writes the output to a file.
Creates instances of TactileImagePage renders then and writes the output to a file .
# || 'products.json' # if File.exists?( json_filename ) # Write out all our pages