Class: Liquid::BlankFileSystem

### Home Classes Methods

### In Files

- lib/liquid/file_system.rb

### Parent

Object

### Methods

- #read_template_file

### Class/Module Index

Quicksearch

- Liquid
- Liquid::ArgumentError
- Liquid::Assign
- Liquid::BlankFileSystem
- Liquid::Block
- Liquid::Break
- Liquid::BreakInterrupt
- Liquid::Capture
- Liquid::Case
- Liquid::Comment
- Liquid::Context
- Liquid::ContextError
- Liquid::Continue
- Liquid::ContinueInterrupt
- Liquid::Cycle
- Liquid::Decrement
- Liquid::Document
- Liquid::Drop
- Liquid::ElseCondition
- Liquid::Error
- Liquid::FileSystemError
- Liquid::FilterNotFound
- Liquid::For
- Liquid::I18n
- Liquid::I18n::TranslationError
- Liquid::If
- Liquid::Ifchanged
- Liquid::Include
- Liquid::Increment
- Liquid::Interrupt
- Liquid::Lexer
- Liquid::LocalFileSystem
- Liquid::MemoryError
- Liquid::Parser
- Liquid::Raw
- Liquid::StackLevelError
- Liquid::StandardError
- Liquid::StandardFilters
- Liquid::SyntaxError
- Liquid::TableRow
- Liquid::Tag
- Liquid::Template
- Liquid::Unless
- Liquid::Utils
- Liquid::Variable
- FalseClass
- LiquidView
- Module
- NilClass
- TrueClass

No matching classes.

# Liquid::BlankFileSystem

A Liquid file system is a way to let your templates retrieve other templates for use with the include tag.

You can implement subclasses that retrieve templates from the database, from the file system using a different path structure, you can provide them as hard-coded inline strings, or any manner that you see fit.

You can add additional instance variables, arguments, or methods as needed.

Example:

Liquid::Template.file_system = Liquid::LocalFileSystem.new(template_path) liquid = Liquid::Template.parse(template)

This will parse the template with a LocalFileSystem implementation rooted at 'template_path'.

### Public Instance Methods

read_template_file(template_path, context) click to toggle source

Called by Liquid to retrieve a template file

    # File lib/liquid/file_system.rb, line 17
    def read_template_file(template_path, context)
      raise FileSystemError, "This liquid context does not allow includes."
    end

[Validate]

Generated with the Darkfish Rdoc Generator 2.