Skip to content

Unable to use procs for nested properties #23

@mhuggins

Description

@mhuggins

Hi there! Thanks for creating this gem. I'm trying to reuse title & description for twitter title & description, but not having any luck. I tried both:

= metamagic site: 'My Site',
            title: [:title, :site],
            separator: ' | ',
            description: 'Default description...',
            twitter: { card: 'summary', title: -> { title }, description: -> { description } }

and:

= metamagic site: 'My Site',
            title: [:title, :site],
            separator: ' | ',
            description: 'Default description...',
            twitter: { card: 'summary', title: [:title], description: [:description] }

Unfortunately neither the twitter:title nor twitter:description are rendered.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions