Skip to content

Passing values to component? #3188

Answered by edwardhorsford
96312 asked this question in Q&A
Discussion options

You must be logged in to vote

@pdehaan I've been using Nunjucks for far longer than I've been using Eleventy, so mostly it's because I'm more comfortable with them. I'm very used to using macros combined with filters (81 macros and 122 filters and counting). My reasons are below:

  • I prefer the more functional syntax of name(...args) over name arg, arg
  • If I ever leave Eleventy I'm almost certainly going to still be using Nunjucks - I'd prefer to keep to native templating things where possible.
  • In Nunjucks, {% is used for expressions, whilst {{ is used to render to page. Eleventy using {% just feels 'wrong' to me.
  • They're pure templating, so can be more suited to html based manipulation.
  • Named args - though in truth I r…

Replies: 8 comments 10 replies

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
6 replies
@96312
Comment options

@edwardhorsford
Comment options

@96312
Comment options

@edwardhorsford
Comment options

@96312
Comment options

Comment options

You must be logged in to vote
3 replies
@pdehaan
Comment options

@pdehaan
Comment options

@pdehaan
Comment options

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by 96312
Comment options

You must be logged in to vote
1 reply
@96312
Comment options

Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
4 participants