Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do we really need the @content directive? #2

Open
alexweissman opened this issue Feb 6, 2015 · 0 comments
Open

Do we really need the @content directive? #2

alexweissman opened this issue Feb 6, 2015 · 0 comments
Labels

Comments

@alexweissman
Copy link
Owner

Why do we need to do this:

    "body" => [
        "@template" => $template,
        "@content" => [
            "img_src" => "http://avatars1.githubusercontent.com/u/5004534?v=3&s=400",
            "img_alt" => "Lord of the Fries",
            "heading" => "Alex Weissman",
            "body" => "Alex has many years of experience in software development, including web development using MySQL, PHP, and Javascript frameworks including jQuery and Twitter Bootstrap. Alex maintains the frontend website for Bloomington Tutors..."            
        ]
    ]

Why can't we just do this:

    "body" => [
        "@template" => $template,
        "img_src" => "http://avatars1.githubusercontent.com/u/5004534?v=3&s=400",
        "img_alt" => "Lord of the Fries",
        "heading" => "Alex Weissman",
        "body" => "Alex has many years of experience in software development, including web development using MySQL, PHP, and Javascript frameworks including jQuery and Twitter Bootstrap. Alex maintains the frontend website for Bloomington Tutors..."            
    ]

It might be more intuitive if the content placeholders were 1, instead of 2 levels down.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant