YukiGasai / obsidian-google-calendar

Add Google Calendar inside Obsidian
https://yukigasai.github.io/obsidian-google-calendar/
GNU General Public License v3.0
359 stars 25 forks source link

Make gEvent available to Templater #167

Closed califa closed 1 year ago

califa commented 1 year ago

Hey, new to Obsidian here so apologies if this isn't a reasonable ask, but is there a way to make the json object available to Templater for more advanced manipulation? For instance I'm trying to remove all Zoom info from the description, and to parse attendees with some logic, and to place both in collapsed callouts.

In general, I'm getting this error when I try to use Templater syntax in the template for this plugin. (like <% {{ gEvent.attendees }} %> or <% gEvent.attendees %>.

image

Thanks a ton, and thank you for maintaining this!

YukiGasai commented 1 year ago

Hi, this is already possible using the API. Here are some examples.

califa commented 1 year ago

The best response I could have hoped for! Thanks so much!