- Rename the python folder to something that's more fitting - Would it be very hard to use the ExpandoObject to make it possible to use Current.BodyText instead of Current.GetProperty("bodyText")? I've not played with this - For properties that store their value as an XML string it would be awesome if you could access that more easily (I've now solved it with a tiny little XML parser that takes.. XPath, which is what we're kinda trying to avoid with Razor). - Fix the issue where umbraco crashes if you add to the web.config (which is what VS will do automatically if you add a .cshtml file).
And I would LOVE a dedicated forum on our for Razor! :)
Great suggestions there mate...have you made the feature request on codeplex so we can vote for it in there? :-)
Harald Ulriksen already suggested a dedicated forum for Razor in our and on twitter, but that does'nt seem to have gotten any response from HQ/admins...:-/
"Razor files live along side the Iron* files in the /python
folder (yeah, that's a hold over from the original DLR engine and
changing it would be a breaking change so we have to live with it. Note -
as Morten pointed out in the comments you can set <add key="umbracoPythonPath" value="~/Razor" />
and use a different path for script files), and you create them like
you create any other DLR script file in the Umbraco back office:"
Razor implementation wishlist
Just a few wishes:
- Rename the python folder to something that's more fitting
- Would it be very hard to use the ExpandoObject to make it possible to use Current.BodyText instead of Current.GetProperty("bodyText")? I've not played with this
- For properties that store their value as an XML string it would be awesome if you could access that more easily (I've now solved it with a tiny little XML parser that takes.. XPath, which is what we're kinda trying to avoid with Razor).
- Fix the issue where umbraco crashes if you add to the web.config (which is what VS will do automatically if you add a .cshtml file).
And I would LOVE a dedicated forum on our for Razor! :)
Hi Seb
Great suggestions there mate...have you made the feature request on codeplex so we can vote for it in there? :-)
Harald Ulriksen already suggested a dedicated forum for Razor in our and on twitter, but that does'nt seem to have gotten any response from HQ/admins...:-/
/Jan
I guess Slace answered the path thing:
http://www.aaron-powell.com/umbraco-4-and-razor
"Razor files live along side the Iron* files in the
/python
folder (yeah, that's a hold over from the original DLR engine and changing it would be a breaking change so we have to live with it. Note - as Morten pointed out in the comments you can set<add key="umbracoPythonPath" value="~/Razor" />
and use a different path for script files), and you create them like you create any other DLR script file in the Umbraco back office:"Wishlist for the dynamicnode:
return null or a default value (instead of throwing an error) when querying for non existant properties http://our.umbraco.org/forum/developers/api-questions/17383-DynamicNode-safe-property-(topnavigation-in-Razor)
lambdas http://our.umbraco.org/forum/developers/api-questions/16034-Razor-@helper-in-Umbraco?p=1
Cheers
Jonas
is working on a reply...