readmer 0.1.0

Compose README.md files from Liquid or Jinja2 templates.
Documentation
1
2
3
4
5
6
7
8
9
10
11
// This is free and unencumbered software released into the public domain.

use super::{LoadPubspecError, Pubspec};
use crate::Utf8Path;
use serde_json::Value;

pub fn load_pubspec(path: impl AsRef<Utf8Path>) -> Result<Pubspec, LoadPubspecError> {
    let input = std::fs::read_to_string(path.as_ref())?;
    let output = serde_norway::from_str(&input).unwrap(); // FIXME
    Ok(output)
}