[wp-trac] [WordPress Trac] #21676: Pass a variable to get_template_part()

WordPress Trac noreply at wordpress.org
Fri Jan 4 14:30:07 UTC 2013


#21676: Pass a variable to get_template_part()
-------------------------------------------------+-------------------------
 Reporter:  sc0ttkclark                          |       Owner:
     Type:  enhancement                          |      Status:  new
 Priority:  normal                               |   Milestone:  Future
Component:  Template                             |  Release
 Severity:  normal                               |     Version:  3.4.1
 Keywords:  has-patch needs-testing dev-         |  Resolution:
  feedback 2nd-opinion                           |
-------------------------------------------------+-------------------------
Changes (by GeertDD):

 * cc: geertdd@… (added)


Comment:

 I definitely do like the proposed functionality. Being able to pass on
 data to a template allows you to [http://wp.tutsplus.com/tutorials
 /creative-coding/improving-your-work-flow-separate-your-mark-up-from-your-
 logic/ separate your markup from your logic]. It would work much like a
 View (as in MVC).

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/21676#comment:16>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list