Sha256: 35027c078fa0f0dff9a1752eb27a3f403880ee8d3504ed982a068aaaa97175d2
Contents?: true
Size: 941 Bytes
Versions: 94
Compression:
Stored size: 941 Bytes
Contents
<% raise "Missing 'name' key in tutorial landing page block" unless local_assigns['name'] %> <% path = Nexmo::Markdown::DocFinder.find( root: Tutorial.tutorials_path, document: "#{local_assigns['name']}.yml", language: @language, ).path raise "Unable to read file: #{path}" unless File.exist? path file = File.read(path) %> <% tutorial = YAML.safe_load(file) %> <a class="Vlt-card" href="<%= tutorial['external_link'] ? tutorial['external_link'] : '/use-cases/' + local_assigns['name'] %>"> <% if tutorial['image_url'] %> <img src="<%= tutorial['image_url'] %>" class="img-full" alt srcset="" sizes="(max-width: 100%) 100vw, 100%" > <% end %> <h4 class="Vlt-margin--top2"><%= tutorial['title'] %></h4> <% if tutorial['description'] %> <p> <%= tutorial['description'].render_markdown %> </p> <% end %> </a>
Version data entries
94 entries across 94 versions & 1 rubygems