Module: Dato

Defined in:
app/components/dato/live.rb,
lib/dato/gql.rb,
lib/dato/cache.rb,
lib/dato/items.rb,
lib/dato/client.rb,
lib/dato/config.rb,
lib/dato/engine.rb,
lib/dato/uploads.rb,
lib/dato/version.rb,
app/components/dato/node.rb,
app/components/dato/dast_node.rb,
app/components/dato/not_rendered.rb,
app/components/dato/unknown_node.rb,
app/components/dato/unknown_block.rb,
app/controllers/dato/live_controller.rb,
app/controllers/dato/publish_controller.rb

Overview

This component can bring to life your dato components allowing peviews and live updates. Given that you have a component MyComponent that renders your page, you can would render your page with: render(MyComponent.new(@data_result_from_dato_query)) you can now use this wrapper component to do: render(Dato::Live.new(MyComponent, query, preview: true, live: true)

Defined Under Namespace

Classes: Block, Blockquote, Cache, Client, Code, Config, DastNode, Engine, Gql, Heading, Items, Link, List, ListItem, Live, LiveController, Node, NotRendered, Paragraph, PublishController, ResponsiveImage, Span, StructuredText, ThematicBreak, UnknownBlock, UnknownNode, Uploads

Constant Summary collapse

VERSION =
"0.7.5"