Link to home
Start Free TrialLog in
Avatar of Stuart Saxby
Stuart SaxbyFlag for Australia

asked on

What is 'partial' from a coding perspective?

I'm currently working through a geddy tutorial and came across a line of code:
<%- partial('form', {step: {}, toDos: toDos}) %>

Open in new window

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.
Avatar of Dan Craciun
Dan Craciun
Flag of Romania image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
It looks to me that "partial" is a JavaScript call.  I wouldn't get too concerned, because this type of coding is highly susceptible to scripting attacks

If I'm correct , Partial is the JavaScript function and it is being passed the entire form, an empty "step" object, and a "toDos" object set to the value of todos in the browser context.
Avatar of Stuart Saxby


Thanks!  Explains it perfectly.  I hope you don't mind I posted your comment on StackOverflow (giving credit) where I hadn't had such a concise and clear response.
You're welcome and I don't mind :)
Glad I could help!