work/libs/page_parser.rb
# This method prepare the data for future VueJs requests
This method prepare the data for future VueJs requests
This method prepare the data for future VueJs requests
def prepare( directory )
    path = '../vue_js/data/' + directory
    FileUtils.mkpath( path )
    @pages.each do |key, data|
      File.open( "#{path}/#{key}.json", 'w' ) do |f|
        f.puts( JSON.pretty_generate( data ) )
      end
    end
  end
def prepare ( directory ) path = '../vue_js/data/' + directory FileUtils . mkpath ( path ) @pages . each do | key , data | File . open ( "#{path}/#{key}.json" , 'w' ) do | f | f . puts ( JSON . pretty_generate ( data ) ) end end end
This method prepare the data for future VueJs requests
This method prepare the data for future VueJs requests
directory
<not_specific>