-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #25 from usetrmnl/base64_image_flag
Base64 image flag
- Loading branch information
Showing
17 changed files
with
160 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
# Ignore locally generated content | ||
public/images/generated/*.bmp | ||
db/*.sqlite3 | ||
db/*.sqlite3-* | ||
.env |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
require './app' | ||
require 'sinatra/activerecord/rake' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,3 @@ | ||
config.active_record.maintain_test_schema = true | ||
# frozen_string_literal: true | ||
|
||
config.active_record.maintain_test_schema = true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,30 @@ | ||
# frozen_string_literal: true | ||
|
||
module ExplicitFormePlugin | ||
attr_reader :_form_tag | ||
|
||
def form_tag(attrs) | ||
@_form_tag = ::Forme::Tag.new(self, :form, attrs) | ||
end | ||
|
||
def explicit_open() | ||
@to_s << self.serialize_open(@_form_tag) | ||
self.before_form_yield | ||
def explicit_open | ||
@to_s << serialize_open(@_form_tag) | ||
before_form_yield | ||
@to_s | ||
end | ||
|
||
def explicit_close() | ||
def explicit_close | ||
form_len = @to_s.length | ||
self.after_form_yield | ||
@to_s << self.serialize_close(@_form_tag) | ||
after_form_yield | ||
@to_s << serialize_close(@_form_tag) | ||
@to_s[form_len..] | ||
end | ||
|
||
def form_output(&block) | ||
form_str = String.new | ||
form_str << self.explicit_open() | ||
form_str << explicit_open | ||
form_str << block.call if block_given? | ||
form_str << self.explicit_close() | ||
form_str << explicit_close | ||
form_str | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.