Safe Haskell | None |
---|---|
Language | Haskell98 |
Evaluates a ruby template from what's generated by Erb.Parser.
- rubyEvaluate :: Container ScopeInformation -> Text -> [RubyStatement] -> Either Doc Text
- getVariable :: Container ScopeInformation -> Text -> Text -> Either Doc PValue
- extractFromState :: InterpreterState -> Maybe (Text, Container ScopeInformation)
Documentation
rubyEvaluate :: Container ScopeInformation -> Text -> [RubyStatement] -> Either Doc Text Source
:: Container ScopeInformation | The whole scope data. |
-> Text | Current scope name. |
-> Text | Full variable name. |
-> Either Doc PValue |
A pure function for resolving variables.
extractFromState :: InterpreterState -> Maybe (Text, Container ScopeInformation) Source