Module: Inkcite
- Defined in:
- lib/inkcite/util.rb,
lib/inkcite.rb,
lib/inkcite/view.rb,
lib/inkcite/email.rb,
lib/inkcite/mailer.rb,
lib/inkcite/parser.rb,
lib/inkcite/version.rb,
lib/inkcite/cli/base.rb,
lib/inkcite/cli/init.rb,
lib/inkcite/cli/test.rb,
lib/inkcite/minifier.rb,
lib/inkcite/renderer.rb,
lib/inkcite/uploader.rb,
lib/inkcite/animation.rb,
lib/inkcite/cli/build.rb,
lib/inkcite/cli/scope.rb,
lib/inkcite/cli/server.rb,
lib/inkcite/cli/preview.rb,
lib/inkcite/renderer/td.rb,
lib/inkcite/cli/validate.rb,
lib/inkcite/renderer/div.rb,
lib/inkcite/view/context.rb,
lib/inkcite/renderer/base.rb,
lib/inkcite/renderer/like.rb,
lib/inkcite/renderer/link.rb,
lib/inkcite/renderer/snow.rb,
lib/inkcite/renderer/span.rb,
lib/inkcite/renderer/image.rb,
lib/inkcite/renderer/lorem.rb,
lib/inkcite/renderer/style.rb,
lib/inkcite/renderer/table.rb,
lib/inkcite/view/tag_stack.rb,
lib/inkcite/renderer/button.rb,
lib/inkcite/renderer/social.rb,
lib/inkcite/renderer/element.rb,
lib/inkcite/renderer/partial.rb,
lib/inkcite/renderer/sparkle.rb,
lib/inkcite/view/media_query.rb,
lib/inkcite/renderer/footnote.rb,
lib/inkcite/renderer/property.rb,
lib/inkcite/renderer/redacted.rb,
lib/inkcite/renderer/increment.rb,
lib/inkcite/renderer/preheader.rb,
lib/inkcite/renderer/background.rb,
lib/inkcite/renderer/image_base.rb,
lib/inkcite/renderer/in_browser.rb,
lib/inkcite/renderer/responsive.rb,
lib/inkcite/renderer/table_base.rb,
lib/inkcite/renderer/mobile_only.rb,
lib/inkcite/renderer/mobile_image.rb,
lib/inkcite/renderer/mobile_style.rb,
lib/inkcite/renderer/mobile_toggle.rb,
lib/inkcite/renderer/video_preview.rb,
lib/inkcite/renderer/container_base.rb,
lib/inkcite/renderer/special_effect.rb,
lib/inkcite/renderer/google_analytics.rb,
lib/inkcite/renderer/litmus_analytics.rb
Overview
Brian Graves’ Toggle Responsive Pattern briangraves.github.io/ResponsiveEmailPatterns/patterns/navigation/toggle.html
Defined Under Namespace
Modules: Cli, Renderer, Util Classes: Animation, Email, Mailer, Minifier, Parser, Uploader, View
Constant Summary collapse
- VERSION =
"1.13.0"
Class Method Summary collapse
- .asset_path ⇒ Object
-
.blueprint_image64 ⇒ Object
Loads (and caches) the base64-encoded PNG data for the subtle background texture that Inkcite installs on the <body> tag in development mode.
Class Method Details
.asset_path ⇒ Object
36 37 38 |
# File 'lib/inkcite.rb', line 36 def self.asset_path File.join(File.('../', File.dirname(__FILE__)), 'assets') end |
.blueprint_image64 ⇒ Object
Loads (and caches) the base64-encoded PNG data for the subtle background texture that Inkcite installs on the <body> tag in development mode.
42 43 44 45 46 47 |
# File 'lib/inkcite.rb', line 42 def self.blueprint_image64 @blueprint64 ||= begin blueprint_path = File.join(asset_path, 'blueprint.png') Base64.encode64(File.read(blueprint_path)).gsub(/[\r\f\n]/, '') end end |