jekyll-include-raw 0.0.1

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.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 744420c97414990fea6db6620a30b1d79fecde85fbee141ee80f6acd51e77657
4
+ data.tar.gz: e8dfce322f17d3192507550c2c0a4d9927d595ad687079e2fea650000a24b718
5
+ SHA512:
6
+ metadata.gz: af6875b2c756dcb847194cb8fcec1157289f0131ebbf76f51c4bfc589c92e41cb07e1ba6562715a66ba1e0fba7c759a9e294681b29343abcc92bba630f40544c
7
+ data.tar.gz: 7d2a372bb0156175f417b67ade42259a18e350dd091de008dd04975668b322725b556549542ad0278cb974f505e95f9baada83e3203e6b4970be852b23d39a83
@@ -0,0 +1,11 @@
1
+ module JekyllIncludeRaw
2
+ class Tag < Jekyll::Tags::IncludeTag
3
+ def read_file(file, context)
4
+ contents = File.read(file, **file_read_opts(context))
5
+ "{% raw %}#{contents}{% endraw %}"
6
+ end
7
+ end
8
+
9
+ end
10
+
11
+ Liquid::Template.register_tag('include_raw', JekyllIncludeRaw::Tag)
@@ -0,0 +1,3 @@
1
+ module JekyllIncludeRaw
2
+ require 'jekyll-include-raw/tag.rb'
3
+ end
metadata ADDED
@@ -0,0 +1,67 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: jekyll-include-raw
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Kip Landergren
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2023-02-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: jekyll
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '3.7'
20
+ - - "<"
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '3.7'
30
+ - - "<"
31
+ - !ruby/object:Gem::Version
32
+ version: '5.0'
33
+ description: Allows including files which cause liquid parse exceptions without modification.
34
+ email: kip@kip.land
35
+ executables: []
36
+ extensions: []
37
+ extra_rdoc_files: []
38
+ files:
39
+ - lib/jekyll-include-raw.rb
40
+ - lib/jekyll-include-raw/tag.rb
41
+ homepage: https://github.com/klandergren/jekyll-include-raw
42
+ licenses:
43
+ - MIT
44
+ metadata: {}
45
+ post_install_message:
46
+ rdoc_options: []
47
+ require_paths:
48
+ - lib
49
+ required_ruby_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ version: '2.3'
54
+ - - "<"
55
+ - !ruby/object:Gem::Version
56
+ version: '4'
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ requirements: []
63
+ rubygems_version: 3.1.2
64
+ signing_key:
65
+ specification_version: 4
66
+ summary: Jekyll tag to automatically wrap a file's contents in raw / endraw instructions.
67
+ test_files: []