Avatar of Stuart Saxby
Stuart Saxby
Flag 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.

http://geddyjs.org/tutorial
Programming

Avatar of undefined
Last Comment
Dan Craciun

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Dan Craciun

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Daniel Kline

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.
Stuart Saxby

ASKER
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.
Dan Craciun

You're welcome and I don't mind :)
Glad I could help!
I started with Experts Exchange in 2004 and it's been a mainstay of my professional computing life since. It helped me launch a career as a programmer / Oracle data analyst
William Peck