blastwolf 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/blastwolf CHANGED
File without changes
data/lib/blastwolf.rb CHANGED
@@ -15,7 +15,8 @@ class BlastWolf
15
15
  :template_dir => 'blastwolf/templates',
16
16
  :default_scss => ['html.syntax', '_colours', '_layout'],
17
17
  :build_folder => File.join(PROJECT_ROOT, '_build'),
18
- :patterns_folder => File.join(PROJECT_ROOT, 'examples')
18
+ :patterns_folder => File.join(PROJECT_ROOT, 'examples'),
19
+ :basepath => ''
19
20
  }
20
21
 
21
22
  @config.merge!( user_config )
@@ -138,7 +139,9 @@ class BlastWolf
138
139
  contents = Liquid::Template.parse( get_template( template_file ) )
139
140
  layout = Liquid::Template.parse( get_template('layout') )
140
141
 
142
+
141
143
  vars = { 'patterns' => vars } if vars.kind_of?(Array)
144
+ vars[:basepath] = @config[:basepath]
142
145
 
143
146
  rendered_page = layout.render(
144
147
  'title' => page_title,
@@ -1,9 +1,9 @@
1
1
  <html>
2
2
  <head>
3
3
  <title>{{ title }}</title>
4
- <link rel='stylesheet' href='css/global.css' media='all'>
4
+ <link rel='stylesheet' href='{{ basepath }}css/global.css' media='all'>
5
5
  <script src='http://code.jquery.com/jquery-1.10.1.min.js'></script>
6
- <script src='js/patterns.js'></script>
6
+ <script src='{{ basepath }}js/patterns.js'></script>
7
7
  <style>.highlight {clear:both; margin-top:50px;}</style>
8
8
  </head>
9
9
  <body>
@@ -1,3 +1,3 @@
1
1
  module Blastwolf
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: blastwolf
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: