Sha256: 8d6caae82626c1f67ea60fff60e0439009994e60a32342208c04cde00f368a17

Contents?: true

Size: 428 Bytes

Versions: 4

Compression:

Stored size: 428 Bytes

Contents

#	This file is part of the "Utopia Framework" project, and is released under the MIT license.
#	Copyright 2010 Samuel Williams. All rights reserved.
#	See <utopia.rb> for licensing details.

require 'utopia/tags'

Utopia::Tags.create("env") do |transaction, state|
	only = state[:only].split(",").collect(&:to_sym) rescue []

	if defined?(UTOPIA_ENV) && only.include?(UTOPIA_ENV)
		transaction.parse_xml(state.content)
	end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
utopia-0.10.0 lib/utopia/tags/env.rb
utopia-0.9.61 lib/utopia/tags/env.rb
utopia-0.9.60 lib/utopia/tags/env.rb
utopia-0.9.59 lib/utopia/tags/env.rb