Passing Python Dictionary

16 views
Skip to first unread message

palak malhotra

unread,
Jul 3, 2017, 2:03:57 AM7/3/17
to Mergely
I am new to mergely and JS .When I pass my Python dictionary to mergely it gets displayed in a very unformatted way any suggestions how to present it in a formatted way it is urgent :) Thanks.

palak malhotra

unread,
Jul 3, 2017, 2:05:44 AM7/3/17
to Mergely
I am passing it like :

 $(document).ready(function () {
            $('#compare').mergely({
                width: 'auto',
                height: 'auto',
                cmsettings: {
        
                    readOnly: true,
                    lineWrapping: true,
                    lineNumbers: true

                },
                lhs: function(setValue) {
                    setValue('{{dict1}}');
                },
                rhs: function(setValue) {
                    setValue('{dict2}}');
                }
            });
Reply all
Reply to author
Forward
0 new messages