Developer forum

Forum » Templates » Extension for Adobe Brackets editor for finding Dynamicweb Tags

Extension for Adobe Brackets editor for finding Dynamicweb Tags

Sten Hougaard
Reply

For a long time I have been thinking about how to get intellisence on Dynamicweb Template Tags. The other day I did a NodeJS app which stripped templates.dynamicweb.dk for template tags, generating an array of JSON template information.

This data now has been reused in an Extension for Adobe Brackets Editor. The extension is distributed to all users of that editor, it is free and IMHO rather cool! :-)

The search for template tags inside the Brackets editor

When you enter text a list of found tags with their context is shown to the right. When you click on a tag it is inserted into current file. The extension will wrap the tag according to the template type: HTML, XSLT or Razor.

If you have not yet tried the Adobe Brackets Editor you really should try it! It is SO cool! It is build using HTML, CSS, javascript and NodeJS. You can inspect the editor as a normal webpage, it has live reload, internally it uses Twitter Bootstrap (only version 2 for now) and much more. A lot of free cool extensions exists, most of which are free available on Github.com for inspection, and if you have ideas, request or errors you simply create an issue.

You can even be asked to do a pull request - that is you can help improving the code! 

This editor is really one of the best I have seen since 1995! :-)

Enjoy!


Replies

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

That looks really cool. I'll experiment with it.

The backend template editor of Dynamicweb is not provider-based, is it? Would be cool t be able it swap it for something like this ;-)

Imar

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

Oh, never mind that last comment. I thought this was an online editor, but I see it requires a client install. Still cool that you could make this work!

Imar

 

 
Sten Hougaard
Reply

During my search for a way to collect a complete list of Dynamicweb Tags I tried to sniff the URL/Request that Dynamicweb backend template editor used. I did not succed however. I would love to get a API endpoint which could serve structured list of tags.

I hope with this and a direct e-mail to Nicolai, Mikkel Ricky and Asger M. Højfeldt all from Dynamicweb to gain understanding for the need to do things like this. Perhaps I will get the total list of tags, tag extensions, if sentences and so on. I am also considering how I could integrate with custom tags. 

I am hopefull and very happy with the current version for now :-)


Med venlig hilsen/Best regards,

Sten Hougaard
 

 

You must be logged in to post in the forum