rustyroad 1.0.26

Rusty Road is a framework written in Rust that is based on Ruby on Rails. It is designed to provide the familiar conventions and ease of use of Ruby on Rails, while also taking advantage of the performance and efficiency of Rust.
Documentation
use crate::features::implementation::GrapesJs;
use color_eyre::eyre::Result;
use eyre::Error;

pub async fn add_feature(feature_name: String) -> Result<(), Error> {
    match feature_name.as_str() {
        "grapesjs" => {
            let mut grapesjs = GrapesJs::new();

            match grapesjs.add_page().await {
                Ok(_) => {
                    println!("Successfully added grapesjs");
                }
                Err(e) => {
                    println!("Error: {}", e);
                }
            }
        }
        _ => {
            println!("Couldn't find feature: {}", feature_name);
        }
    }

    Ok(())
}