https://linen.dev logo
#help
Title
# help
d

Dan Perovich

08/01/2023, 5:55 PM
Is there a way to remove the whitespace generated when using handlebar templates? With a response body containing a loop and if/then/else logic, the resulting response from the stub contains a lot of extra whitespace. Example in thread.
Copy code
{
"data" : [
    
    
        
        
    
    {
        "id": 36595412,
        "attributes": {
            "firstName": "Zlikg",
            "lastName" : "Sujpdcgqz",
            "department": "marketing",
            "joined": "2018-03-04",
        }
    },
...
t

Tom

08/01/2023, 6:01 PM
Try the
{{#trim}}..{{/trim}}
helper
👍 1