glim-haml-converter 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +7 -0
  2. data/glim-haml-converter.rb +12 -0
  3. metadata +72 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: dbb961faf50b52f1eea0f6b95a19ca99179eebf1141831d65dc9ac2981b9216d
4
+ data.tar.gz: 4ba9e4cc633c619f317d680b24fef938905cb7d0cfd942b681a4a0d75ec15c74
5
+ SHA512:
6
+ metadata.gz: 19d2592d06f8b6bec0b5be9f73d73f594eb37d09a4e1979166ff4e10acfbc123adbb061b55e9490ffb5937cc0dd988a07a051dfba41703241709ae13effb5a0e
7
+ data.tar.gz: e1f3e105dfa00e6e62782f3d48966affad3c315d502f9a7722f65aad3556f6ac9761f76df751bf669f0927ac5dba24046c5545bdc733ae697c85d10887b10369
@@ -0,0 +1,12 @@
1
+ require 'haml'
2
+
3
+ module GlimExtensions
4
+ class HTMLAbstractionMarkupLanguage < Glim::Filter
5
+ transforms 'haml' => 'html'
6
+
7
+ def transform(content, page, options)
8
+ engine = Haml::Engine.new(content)
9
+ engine.render
10
+ end
11
+ end
12
+ end
metadata ADDED
@@ -0,0 +1,72 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: glim-haml-converter
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.1'
5
+ platform: ruby
6
+ authors:
7
+ - Allan Odgaard
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2018-09-27 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: glim
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.1'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.1'
27
+ - !ruby/object:Gem::Dependency
28
+ name: haml
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '5.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '5.0'
41
+ description:
42
+ email:
43
+ executables: []
44
+ extensions: []
45
+ extra_rdoc_files: []
46
+ files:
47
+ - glim-haml-converter.rb
48
+ homepage: https://macromates.com/glim/
49
+ licenses:
50
+ - MIT
51
+ metadata: {}
52
+ post_install_message:
53
+ rdoc_options: []
54
+ require_paths:
55
+ - "."
56
+ required_ruby_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ version: '0'
61
+ required_rubygems_version: !ruby/object:Gem::Requirement
62
+ requirements:
63
+ - - ">="
64
+ - !ruby/object:Gem::Version
65
+ version: '0'
66
+ requirements: []
67
+ rubyforge_project:
68
+ rubygems_version: 2.7.6
69
+ signing_key:
70
+ specification_version: 4
71
+ summary: Converts HAML files into HTML.
72
+ test_files: []