1
0
Fork 0
mirror of https://github.com/MillironX/Kelpie.jl.git synced 2024-11-15 05:53:10 +00:00
Kelpie.jl/v0.2.1/index.html
2022-04-06 19:34:40 +00:00

24 lines
8 KiB
HTML
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<!DOCTYPE html>
<html lang="en"><head><meta charset="UTF-8"/><meta name="viewport" content="width=device-width, initial-scale=1.0"/><title>Home · Kelpie.jl</title><script data-outdated-warner src="assets/warner.js"></script><link rel="canonical" href="https://MillironX.github.io/Kelpie.jl/"/><link href="https://cdnjs.cloudflare.com/ajax/libs/lato-font/3.0.0/css/lato-font.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/juliamono/0.039/juliamono-regular.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/fontawesome.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/solid.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/brands.min.css" rel="stylesheet" type="text/css"/><link href="https://cdnjs.cloudflare.com/ajax/libs/KaTeX/0.13.11/katex.min.css" rel="stylesheet" type="text/css"/><script>documenterBaseURL="."</script><script src="https://cdnjs.cloudflare.com/ajax/libs/require.js/2.3.6/require.min.js" data-main="assets/documenter.js"></script><script src="siteinfo.js"></script><script src="../versions.js"></script><link class="docs-theme-link" rel="stylesheet" type="text/css" href="assets/themes/documenter-dark.css" data-theme-name="documenter-dark" data-theme-primary-dark/><link class="docs-theme-link" rel="stylesheet" type="text/css" href="assets/themes/documenter-light.css" data-theme-name="documenter-light" data-theme-primary/><script src="assets/themeswap.js"></script></head><body><div id="documenter"><nav class="docs-sidebar"><div class="docs-package-name"><span class="docs-autofit"><a href>Kelpie.jl</a></span></div><form class="docs-search" action="search/"><input class="docs-search-query" id="documenter-search-query" name="q" type="text" placeholder="Search docs"/></form><ul class="docs-menu"><li class="is-active"><a class="tocitem" href>Home</a></li></ul><div class="docs-version-selector field has-addons"><div class="control"><span class="docs-label button is-static is-size-7">Version</span></div><div class="docs-selector control is-expanded"><div class="select is-fullwidth is-size-7"><select id="documenter-version-selector"></select></div></div></div></nav><div class="docs-main"><header class="docs-navbar"><nav class="breadcrumb"><ul class="is-hidden-mobile"><li class="is-active"><a href>Home</a></li></ul><ul class="is-hidden-tablet"><li class="is-active"><a href>Home</a></li></ul></nav><div class="docs-right"><a class="docs-edit-link" href="https://github.com/MillironX/Kelpie.jl/blob/master/docs/src/index.md#" title="Edit on GitHub"><span class="docs-icon fab"></span><span class="docs-label is-hidden-touch">Edit on GitHub</span></a><a class="docs-settings-button fas fa-cog" id="documenter-settings-button" href="#" title="Settings"></a><a class="docs-sidebar-button fa fa-bars is-hidden-desktop" id="documenter-sidebar-button" href="#"></a></div></header><article class="content" id="documenter-page"><p>&lt;! markdownlint-disable first-line-heading &gt;</p><h1 id="Kelpie"><a class="docs-heading-anchor" href="#Kelpie">Kelpie</a><a id="Kelpie-1"></a><a class="docs-heading-anchor-permalink" href="#Kelpie" title="Permalink"></a></h1><p>Documentation for <a href="https://github.com/MillironX/Kelpie.jl">Kelpie</a>.</p><ul><li><a href="#Kelpie.html-Tuple"><code>Kelpie.html</code></a></li><li><a href="#Kelpie.html_element-Tuple{AbstractString, Vararg{Any}}"><code>Kelpie.html_element</code></a></li><li><a href="#Kelpie.link_or_text!-Tuple{Any, Vararg{Any}}"><code>Kelpie.link_or_text!</code></a></li></ul><article class="docstring"><header><a class="docstring-binding" id="Kelpie.html-Tuple" href="#Kelpie.html-Tuple"><code>Kelpie.html</code></a><span class="docstring-category">Method</span></header><section><div><pre><code class="language-julia hljs">html(content...=nothing; kwargs...)</code></pre><p>Creates a new HTML document filled with <code>content</code>.</p><p><strong>Example</strong></p><pre><code class="language-julia-repl hljs">julia&gt; import EzXML: prettyprint
julia&gt; prettyprint(html())
&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot; standalone=&quot;yes&quot;?&gt;
&lt;!DOCTYPE html SYSTEM &quot;about:legacy-compat&quot;&gt;
&lt;html/&gt;</code></pre></div><a class="docs-sourcelink" target="_blank" href="https://github.com/MillironX/Kelpie.jl/blob/a6a79b2f65d0f09636338f7e2d5cb490c1324e22/src/Kelpie.jl#L130-L145">source</a></section></article><article class="docstring"><header><a class="docstring-binding" id="Kelpie.html_element-Tuple{AbstractString, Vararg{Any}}" href="#Kelpie.html_element-Tuple{AbstractString, Vararg{Any}}"><code>Kelpie.html_element</code></a><span class="docstring-category">Method</span></header><section><div><pre><code class="language-julia hljs">html_element(name, content...=nothing; kwargs...)</code></pre><p>Creates a new <code>EzXML.Node</code> with name <code>name</code>, containing <code>content</code>, and with attributes specified by <code>kwargs</code>.</p><p><strong>Example</strong></p><pre><code class="language-julia-repl hljs">julia&gt; import EzXML: prettyprint
julia&gt; prettyprint(html_element(&quot;img&quot;; src=&quot;https://millironx.com/images/charolette.jpg&quot;))
&lt;img src=&quot;https://millironx.com/images/charolette.jpg&quot;/&gt;
julia&gt; prettyprint(html_element(&quot;span&quot;, &quot;MillironX&quot;; class=&quot;label-primary&quot;))
&lt;span class=&quot;label-primary&quot;&gt;MillironX&lt;/span&gt;</code></pre></div><a class="docs-sourcelink" target="_blank" href="https://github.com/MillironX/Kelpie.jl/blob/a6a79b2f65d0f09636338f7e2d5cb490c1324e22/src/Kelpie.jl#L98-L115">source</a></section></article><article class="docstring"><header><a class="docstring-binding" id="Kelpie.link_or_text!-Tuple{Any, Vararg{Any}}" href="#Kelpie.link_or_text!-Tuple{Any, Vararg{Any}}"><code>Kelpie.link_or_text!</code></a><span class="docstring-category">Method</span></header><section><div><pre><code class="language-julia hljs">link_or_text!(node, content...)</code></pre><p>Converts each <code>content</code> to an <code>EzXML.TextNode</code> if it isn&#39;t already an <code>EzXML.Node</code> and links it to <code>node</code>.</p><pre><code class="language-julia-repl hljs">julia&gt; import EzXML: ElementNode, prettyprint; import Kelpie: link_or_text!
julia&gt; prettyprint(link_or_text!(ElementNode(&quot;div&quot;), ElementNode(&quot;br&quot;)))
&lt;div&gt;
&lt;br/&gt;
&lt;/div&gt;
julia&gt; prettyprint(link_or_text!(ElementNode(&quot;h1&quot;), &quot;Kelpie.jl&quot;))
&lt;h1&gt;Kelpie.jl&lt;/h1&gt;
julia&gt; prettyprint(link_or_text!(ElementNode(&quot;div&quot;), &quot;The end&quot;, ElementNode(&quot;hr&quot;)))
&lt;div&gt;The end&lt;hr/&gt;&lt;/div&gt;</code></pre></div><a class="docs-sourcelink" target="_blank" href="https://github.com/MillironX/Kelpie.jl/blob/a6a79b2f65d0f09636338f7e2d5cb490c1324e22/src/Kelpie.jl#L63-L83">source</a></section></article></article><nav class="docs-footer"><p class="footer-message">Powered by <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> and the <a href="https://julialang.org/">Julia Programming Language</a>.</p></nav></div><div class="modal" id="documenter-settings"><div class="modal-background"></div><div class="modal-card"><header class="modal-card-head"><p class="modal-card-title">Settings</p><button class="delete"></button></header><section class="modal-card-body"><p><label class="label">Theme</label><div class="select"><select id="documenter-themepicker"><option value="documenter-light">documenter-light</option><option value="documenter-dark">documenter-dark</option></select></div></p><hr/><p>This document was generated with <a href="https://github.com/JuliaDocs/Documenter.jl">Documenter.jl</a> version 0.27.15 on <span class="colophon-date" title="Wednesday 6 April 2022 19:34">Wednesday 6 April 2022</span>. Using Julia version 1.7.2.</p></section><footer class="modal-card-foot"></footer></div></div></div></body></html>