File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- use maud:: { Markup , html} ;
2-
1+ use maud:: html;
32
43pub fn single_markdown_to_html ( markdown : String ) -> maud:: Markup {
54 let m_as_html = markdown:: to_html_with_options ( & markdown, & markdown:: Options :: gfm ( ) )
Original file line number Diff line number Diff line change 1- use super :: Address ;
2- use super :: Sponsor ;
3- use std:: process:: exit;
41use std:: { fs, io:: Write } ;
52
63use maud:: { Markup , html} ;
74mod md;
85
96use crate :: remote;
107
11- impl Address {
12- pub fn html ( & self ) -> Markup {
13- maud:: html! {
14- div {
15- p { @if let Some ( description) = & self . description {
16- ( description)
17- } " | " ( self . street) " | " ( self . city) " | " ( self . postal_code) }
18- }
19- }
20- }
21- }
22-
23- impl Sponsor {
24- pub fn html ( & self ) -> Markup {
25- maud:: html! {
26- div {
27- p { ( self . name) }
28- @if let Some ( website) = & self . website {
29- a href=( website) { ( website) }
30- }
31- @if let Some ( content) = & self . content {
32- p { ( content) }
33- }
34- }
35- }
36- }
37- }
38-
398pub fn build ( ) {
409 let ( css, markdown) = remote:: get_files ( ) ;
4110
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ use std::{fs, io::Read};
22
33use xshell:: cmd;
44
5- use crate :: meetups:: Meetups ;
6-
75pub fn get_config_dir ( ) -> std:: path:: PathBuf {
86 dirs:: config_dir ( ) . unwrap ( )
97}
You can’t perform that action at this time.
0 commit comments