oak-twig 0.0.11

Twig templating engine parser with support for modern template syntax and features.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#![doc = include_str!("readme.md")]
use oak_core::SourceText;

/// Twig language formatter
pub struct TwigFormatter;

impl TwigFormatter {
    pub fn format(&self, source: &SourceText, _indent: usize) -> String {
        // TODO: Implement Twig formatting logic
        source.text().to_string()
    }
}