2022-01-16 14:14:58 +05:30
|
|
|
<. let gist_id = crate::data::Data::get_gist_id(src); .>
|
2021-11-04 23:51:59 +05:30
|
|
|
<. let (_, gist)= gists.as_ref().unwrap().iter().find(|(id, _)| id == gist_id).as_ref().unwrap(); .>
|
2021-12-09 11:36:26 +05:30
|
|
|
<div class="gist_container">
|
2022-01-16 14:14:58 +05:30
|
|
|
<. for file in &gist.files {.>
|
2022-03-18 20:45:01 +05:30
|
|
|
<div class="code-block gist-block"> <.- file.get_html_content() .> </div>
|
2022-01-16 14:14:58 +05:30
|
|
|
<.}.>
|
2021-12-09 11:36:26 +05:30
|
|
|
<a class="gist_link" href="<.= &gist.html_url .>" target="_blank"
|
2021-11-04 23:51:59 +05:30
|
|
|
>See gist on GitHub</a
|
|
|
|
>
|
2021-12-09 11:36:26 +05:30
|
|
|
</div>
|