libmedium/templates/gist_insert.html

10 lines
407 B
HTML

<. let gist_id = crate::data::Data::get_gist_id(src); .>
<. let (_, gist)= gists.as_ref().unwrap().iter().find(|(id, _)| id == gist_id).as_ref().unwrap(); .>
<div class="gist_container">
<. for file in &gist.files {.>
<div class="code-block gist-block"> <.- file.get_html_content() .> </div>
<.}.>
<a class="gist_link" href="<.= &gist.html_url .>" target="_blank"
>See gist on GitHub</a
>
</div>