titan-html 0.4.2

HTML Generator with builtin css-in-rust support. Mainly used in the titan family, but can be used independently
Documentation
use titan_html_core::StyleRule;

#[derive(Clone, Debug, Hash, Eq, PartialEq)]
pub enum TagClass {
  /// Just a class
  Normal(String),
  /// Style that needs processing.
  //Style(String),
  StyleRule(StyleRule),
}

impl TagClass {
  pub fn text(value: String) -> TagClass {
    Self::Normal(value)
  }

  pub fn styles(value: StyleRule) -> TagClass {
    Self::StyleRule(value)
  }
}