निम्नलिखित कार्यलय वृक्ष संरचना, जहां पांच नेस्टेड स्तरों मौजूद देखते हुए:बीईएम का उपयोग कर तत्व के दायरे को सही ढंग से कैसे सेट करें?
collection-main__features-top__story__byline__author
कार्यलय के नामकरण परंपरा है, जहां एक तत्व एक ब्लॉक का हिस्सा है और इसे करने के लिए ब्लॉक, क्या है अंतर्गत आता है के बाहर कोई अर्थ नहीं है के अनुसार author
कक्षा का नाम देने का सही तरीका?
एक author
के बाद से शब्दार्थ features-top
और collection-main
ब्लॉक के तहत byline
और story
संदर्भ से बंधा है, लेकिन व्यर्थ है, सबसे अच्छा कार्यलय नाम क्या है?
collection-main__author
features-top__author
story__author (best?)
story__byline__author
byline__author
क्या होता है यदि कोई नया features
ब्लॉक पेश किया जाता है?
collection-main__features-top__story__byline__author (target)
collection-main__features-bottom__story__byline__author
features-top__story__author
story--features-top__author (best?)
अंत में, यदि एक और collection
ब्लॉक जोड़ा जाता है क्या होता है और हम सूची में दूसरे लेखक तत्व शैली करना चाहते हैं?
collection-main__features-top__story__byline__author
collection-main__features-bottom__story__byline__author (target)
collection-sub__features-top__story__byline__author
collection-sub__features-bottom__story__byline__author
क्या हम ऐसा कुछ करेंगे?
story--collection-main--features-bottom__author
एक बेहतर विकल्प होना चाहिए।
कृपया, आउटपुट में अपना डेटा दिखाएं। क्या यह '{संग्रह-मुख्य: [{" सुविधा-वस्तु ": {कहानी: {लेखक: ''}}}]} है? –