intermodal/bin/gen/src/faq.rs
Casey Rodarmor 1cb1178672
Create FAQ
Add an FAQ section to the book. Include information about how to use
imdl with `fzf --preview`.

type: documentation
fixes:
- https://github.com/casey/intermodal/issues/397
2020-04-19 23:19:29 -07:00

16 lines
255 B
Rust

use crate::common::*;
#[derive(Template)]
#[template(path = "faq.md")]
pub(crate) struct Faq {
pub(crate) entries: Vec<FaqEntry>,
}
impl Faq {
pub(crate) fn new(entries: &[FaqEntry]) -> Self {
Self {
entries: entries.to_vec(),
}
}
}