Module: Dato

Defined in:
app/components/dato/live_stream.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,
lib/dato/current_request.rb,
app/components/dato/wrapper.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/components/dato/base_component.rb,
app/controllers/dato/live_controller.rb,
lib/dato/railties/controller_runtime.rb,
app/controllers/dato/publish_controller.rb

Overview

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

Defined Under Namespace

Modules: Railties Classes: BaseComponent, Block, Blockquote, Cache, Client, Code, Config, CurrentRequest, DastNode, Engine, Gql, Heading, ImageBlockRecord, InlineBlock, InlineItem, InvalidGraphqlQuery, ItemLink, Items, Link, List, ListItem, LiveController, LiveStream, Node, NotRendered, Paragraph, PublishController, ResponsiveImage, Span, StructuredText, ThematicBreak, UnknownBlock, UnknownNode, Uploads, Wrapper

Constant Summary collapse

VERSION =
"0.10.0"