BundleBase T  AddString Method (String, String, String)SquishIt API Documentation
Add arbitrary content that is not saved on disk with the assumption that it is treated as if found in a given directory. This is useful for adding LESS content that needs to get imports relative to a particular location.

Namespace: SquishIt.Framework.Base
Assembly: SquishIt.Framework (in SquishIt.Framework.dll) Version: 0.9.5.0 (0.9.5.0)
Syntax

public T AddString(
	string content,
	string extension,
	string currentDirectory = null
)

Parameters

content
Type: OnlineSystem String
Content to include in bundle.
extension
Type: OnlineSystem String
Extension that would be included in filename if content were saved to disk - this is needed to determine if the content should be preprocessed.
currentDirectory (Optional)
Type: OnlineSystem String
Folder that file would reside in if content were saved to disk - this is used for processing relative imports within arbitrary content.

Return Value

Type: T
See Also