mirror of
https://github.com/Shopify/liquid.git
synced 2026-09-15 08:50:45 -07:00
Tags can now implement to_ruby(code, compiler) to provide their own optimized Ruby code generation. This allows: 1. Third-party tags to participate in compilation 2. Shopify-specific tags to be lowered to Ruby 3. Better performance for frequently-used custom tags Priority order for tag compilation: 1. tag.to_ruby(code, compiler) - Custom implementation 2. Built-in compiler (IfCompiler, ForCompiler, etc.) 3. Yield to caller as external tag Also updated PROJECT.md with: - External calls yielding documentation - to_ruby convention documentation