ERBã§â¥ãèªãã§ãStructã ã¨ã©ãã ãã£ã¦è©¦ãã¦ãã¦ã¯ã¾ã£ãã require 'erb' Foo = Struct.new(:foo, :bar) class Foo def env binding end end foo = Foo.new('foo', 'bar') p ERB.new('<%= foo %> and <%= bar %>').result(foo.env) ããããã "foo and bar"envã¡ã½ãããªããã¦ã¿ããã require 'erb' Foo = Struct.new(:foo, :bar) foo = Foo.new('foo', 'bar') p ERB.new('<%= foo %> and <%= bar %>').result(foo.instance_eval{binding}) ã¨ã»ã»ãfooãâ¥ã "#<struct Foo
{{#tags}}- {{label}}
{{/tags}}