Sha256: 5e8ab1522bf6f543752cde0ce03e08e0b1ec596b50c7c8c0e56b9da845568bfa

Contents?: true

Size: 852 Bytes

Versions: 2

Compression:

Stored size: 852 Bytes

Contents

# frozen_string_literal: true

require 'mini_racer'
require_relative 'handlebarsjs/version'
require_relative 'handlebarsjs/javascript'
require_relative 'handlebarsjs/handlebars_snapshot'
require_relative 'handlebarsjs/handlebars'
require_relative 'handlebarsjs/base_helper'

module Handlebarsjs
  HANDLEBARS_LIBRARY_PATH = 'lib/handlebarsjs/javascript/handlebars-4.7.7.js'
  HANDLEBARS_API_PATH = 'lib/handlebarsjs/javascript/handlebars-api.js'

  # raise Handlebarsjs::Error, 'Sample message'
  Error = Class.new(StandardError)

  # Your code goes here...
end

if ENV.fetch('KLUE_DEBUG', 'false').downcase == 'true'
  namespace = 'Handlebarsjs::Version'
  file_path = $LOADED_FEATURES.find { |f| f.include?('handlebarsjs/version') }
  version   = Handlebarsjs::VERSION.ljust(9)
  puts "#{namespace.ljust(35)} : #{version.ljust(9)} : #{file_path}"
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
handlebarsjs-0.5.1 lib/handlebarsjs.rb
handlebarsjs-0.5.0 lib/handlebarsjs.rb