PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Wednesday, May 18, 2022

[FIXED] What is 'partial' from a coding perspective?

 May 18, 2022     geddy, partial     No comments   

Issue

I'm currently working through a geddy tutorial and came across a line of code:

<%- partial('form', {step: {}, toDos: toDos}) %>

What does partial mean? I've done a google search without much insight. I'm guessing it means that you partially load the content so the page loads faster?

Any explanations or helpful links would be appreciated.

http://geddyjs.org/tutorial

It's been a while since I've coded so if I should be looking at a particular method of coding (e.g. OOP, MVC) that I'm missing let me know.


Solution

I received this answer by Dan Craciun on experts exchange which answers it for me:

In geddy, a partial (denoted by a _ in front of the name) is a reusable file/template, that is meant to be used in more than one template. It helps share code between different templates.

See here for a longer explanation (about half page, "An intro to partials"): http://code.tutsplus.com/tutorials/creating-a-todo-list-app-with-nodejs-and-geddy--net-24535

HTH, Dan



Answered By - user3627070
Answer Checked By - Robin (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing