Dear Open Hub Users,
We’re excited to announce that we will be moving the Open Hub Forum to
https://community.blackduck.com/s/black-duck-open-hub.
Beginning immediately, users can head over,
register,
get technical help and discuss issue pertinent to the Open Hub. Registered users can also subscribe to Open Hub announcements here.
On May 1, 2020, we will be freezing https://www.openhub.net/forums and users will not be able to create new discussions. If you have any questions and concerns, please email us at
[email protected]
Smarty is a template engine widely used in the PHP ecosystem.
It's a curly bracket tag based language aiming at injecting data in (X)HTML presentation sheets.
The same way PHP is presumely parsed in HTML files by Ohloh, that'd be really interesting and representative to also parse Smarty code.
By the way, how is actually counted a line sharing two -- or more -- languages, such as HTML and PHP?
Cheers,
Hi Thomas,
Adding new languages to Ohloh is not a high priority for us, be we are happy to accept patches if someone is willing to put in the effort. You can find the code for our line counter hosted on SourceForge.
Each line of a source file must be categorized as a single language on Ohloh. If a single line in a source file contains more than one language, then it is up to the individual parser to decide which language precedence. Our PHP parser will choose PHP in the case of a single line that includes both HTML and PHP.
+1 also to Smarty, but then, what happens to the other lesser used template engines?