AngelDoReMi / closure-templates

Automatically exported from code.google.com/p/closure-templates
Apache License 2.0
0 stars 0 forks source link

How to enter construct the map while passing the data to template #71

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I have two templates like below and want to pass only one paramter from one 
template to another. Here I want to create an object having two keys

#1 name -> has to be extracted from programmer as programmer.displayName
#2 Job -> has to be extracted from Job job[programmer.displayName]
and pass this to .renderJob template. How Can I do this?

/**
 * @user
 */
{template .renderJob}
   Username : $user.name
   User Job: $user.job
{/template}

/**
 *  @programmer
 *  @Job
 */

{template .renderUserDetails}
 {call .render }
      <!-- what shoule be passed here? -->
 {/call}
{/template}

Original issue reported on code.google.com by sriharsh...@gmail.com on 5 May 2013 at 1:40

GoogleCodeExporter commented 8 years ago
Please use the mailing list to ask questions, instead of filing issues. Thanks!

Original comment by kai.hu...@gmail.com on 6 May 2013 at 6:25