#!/usr/bin/env ruby # frozen_string_literal: true require_relative '../lib/splash' require_relative '../../bin/builder' builder_class = Crys::Splash::Builder output_dir = "#{File.dirname(File.dirname(__FILE__))}/output" #file_path = "#{File.dirname(File.dirname(__FILE__))}/pages/#{@options[:filepath]}" image_dir = "#{File.dirname(File.dirname(File.expand_path(__FILE__)))}/assets/images" file_path=@options[:filepath] Crys::BuilderRunner.new( file_path: file_path, output_dir: output_dir, builder_class: builder_class, image_dir: image_dir ).run